Commit graph

55 commits

Author SHA1 Message Date
7a8137e6c2 added some comment and increased blink time 2023-07-02 09:27:43 +02:00
a6dcc75897 removed clutter comment 2023-07-02 08:50:38 +02:00
6aadcfd0cc change mqqt broker to localhost 2023-07-01 22:19:30 +02:00
faa5b66587 stoped blink from overriding manual controll 2023-06-09 20:46:43 +02:00
6a0af064ce fixed bug in blink timer 2023-06-09 20:39:37 +02:00
919961a578 Added logic for the stunned face to the render and state scripts 2023-06-09 20:35:32 +02:00
fa94782eb9 fixed bean setting bug. 2023-06-05 22:26:27 +02:00
6781c53cfd added printing to set animations for debugging. 2023-06-05 22:14:17 +02:00
82d0725cfa Added check for animations readyness before updating state. 2023-06-05 22:11:15 +02:00
d14f75058d added space to face generation printing. 2023-06-05 22:07:26 +02:00
a9ef0dc2d1 Add explicit face generation state print 2023-06-05 22:04:47 +02:00
56b34cd083 Major refactoring now using State instead of ProotState.
Expect runtime bugs
2023-06-05 21:44:27 +02:00
18cf352d1a bug fix, correctly set the state in the bean state 2023-06-03 09:04:20 +02:00
0a3244e13f test to load pickles face images. 2023-05-31 19:58:10 +02:00
1a6b55b21d attempt pickling images 2023-05-31 19:53:07 +02:00
74b1a44168 added pickling from animation test. 2023-05-31 19:51:05 +02:00
9cc8fbaafc tighend timing flags for image to frame conversions 2023-05-31 19:09:54 +02:00
bb23a24fa4 Implemented state for beans..
Including setting based on received messages.
2023-05-31 18:56:15 +02:00
2788c1527e set the correct pin number reading 2023-05-31 18:49:46 +02:00
d7de65ae85 fixed off by one counting 2023-05-31 18:45:17 +02:00
0ec2abb46e print the pin number and state of received mqtt message to terminal. 2023-05-31 18:37:08 +02:00
d35fc3b1ea changed the way to call Point2D functions.
Added missing point array generation code
2023-05-29 20:34:21 +02:00
568e48f95d even more bugs and typos 2023-05-29 20:26:00 +02:00
a47b167a07 all the bug fixes 2023-05-29 20:24:34 +02:00
810e6f71d2 more bug fixing. 2023-05-29 20:23:33 +02:00
39022dc18c bug fixing 2023-05-29 20:17:02 +02:00
9f5fbc1c33 Correct use of class functions 2023-05-29 20:12:42 +02:00
ab34ad2455 Moved ProotState to own file.
Moved Point2D to own file.
Added caching for parsed images.
2023-05-29 20:09:29 +02:00
bdcb648765 Fixed drawing mistakes in ProotScreen.
Sped up ProotScreen animation.
2023-05-23 23:02:28 +02:00
989adc603d Set prootscreen image setting to safe mode 2023-05-23 22:59:58 +02:00
35cf042ed7 bug fix in initialisation 2023-05-23 22:45:40 +02:00
20f5eb5405 Increaded ProotState definition to include used local variabels. 2023-05-23 22:44:30 +02:00
e95c47855b Split loading screen into four screens.
Added set loading screen function in the ProotState class.
2023-05-23 22:42:10 +02:00
4f37c94c22 Decrease the time between blinks. 2023-05-23 22:26:58 +02:00
3e6687ea34 Added a random blink call based on interrupts. 2023-05-23 22:24:51 +02:00
7a1c6894da Set the frame update speed back to 0.01 seconds per frame. 2023-05-23 22:16:45 +02:00
aa6ef89745 Added blink() function, and called it when message receive, and when the face is loaded. 2023-05-23 22:15:38 +02:00
a83da2c004 Fixed bug where next frame calculation of blink animation could go negative 2023-05-23 22:10:51 +02:00
903e920bef print returned frame number 2023-05-23 21:59:13 +02:00
3503474dbe Added printing and slowwed updating for debugging. 2023-05-23 21:54:14 +02:00
25c9b953bf Moved Blinking logic to the ProotState class.
Made ProotState class a singleton.
2023-05-23 21:51:06 +02:00
8dab8805e6 Removes safe mode from setting prootScreen image to canvas.
Set ProotScreen frame brightness to 100.
2023-05-23 21:09:50 +02:00
18e6964c6f convert loading image immediately to "RGB" mode 2023-05-23 21:06:35 +02:00
acf63c9b9a added the matrix as parameter to the set prootscreen function 2023-05-23 21:00:17 +02:00
dc2aa2c6d6 Added loading screen show function. 2023-05-23 20:58:43 +02:00
49ee35b55f Added todo's.
Added color definition to the Point2D class.
2023-05-23 20:35:58 +02:00
5180c414b7 Added the mouth and nose to be loaded and dawn with the blink animation. 2023-05-23 20:11:00 +02:00
e0df3b2e68 Cleaned up imports 2023-05-23 19:53:06 +02:00
50d46eae2f Increased timer granularity to ms 2023-05-23 19:51:52 +02:00
215028dad9 Added another timer for configuring matrix 2023-05-23 19:49:26 +02:00