Commit graph

95 commits

Author SHA1 Message Date
fa94782eb9 fixed bean setting bug. 2023-06-05 22:26:27 +02:00
100891e604 added more verbose logging for updating step for debugging. 2023-06-05 22:21:58 +02:00
9abfdab767 changed state singleton to behave like an singleton 2023-06-05 22:17:15 +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
56f45c5b15 Cast int to string to fix printing int. 2023-06-05 22:06:35 +02:00
a9ef0dc2d1 Add explicit face generation state print 2023-06-05 22:04:47 +02:00
94fb108cf6 removed "self" argument. 2023-06-05 21:59:11 +02:00
2c24e076ae removed usage of non-existing name 2023-06-05 21:57:52 +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
37dd54aff7 fixed bug where update_screen was removed from prootstate class 2023-05-31 19:49:39 +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
8631e1353f make Point2D mirror function duplicate point INCLUDING color value. 2023-05-31 17:26:10 +02:00
76d26b08c8 set the imaged draws from point arrays to use color 2023-05-31 17:15:42 +02:00
7c9df0f1c0 specified working directory of cache file 2023-05-29 20:40:35 +02:00
d35fc3b1ea changed the way to call Point2D functions.
Added missing point array generation code
2023-05-29 20:34:21 +02:00
3a9be4e4ea fixed function definition in update_screen 2023-05-29 20:27:12 +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
af11b741c9 saved ProotState.py 2023-05-29 20:09:46 +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