Commit graph

34 commits

Author SHA1 Message Date
fruchti 10a5973361 Load NVS data on power-on 2020-09-20 17:36:58 +02:00
fruchti 3fd2881ba2 Fix NVS erase by properly resetting FLASH_CR 2020-09-20 17:29:15 +02:00
fruchti 5e4b80343f Fix warnings 2020-09-20 16:45:35 +02:00
fruchti 99b3d6a36c Move animation steps to NVS data 2020-09-20 16:44:52 +02:00
fruchti 1e8da90156 Allow using 9 columns to enable debugging 2020-09-20 16:40:55 +02:00
fruchti d6a5ee1689 Tune light sensor parameters 2020-07-18 00:21:11 +02:00
fruchti a3da7c3803 Define animation based on cycle time 2020-07-17 23:38:02 +02:00
fruchti 5d1ef2263a Gradually reset maximum/minimum brightness 2020-07-17 23:31:57 +02:00
fruchti 53aa19d91f Externalise colour LUT 2020-07-17 16:38:09 +02:00
fruchti e81daf59fe Use dedicated timer for animation 2020-07-17 00:17:51 +02:00
fruchti 38d3a3846b Add power-down mode for LED driver 2020-07-16 23:48:48 +02:00
fruchti ee5a5b9f6c Fix light sensor underflow 2020-07-16 23:19:28 +02:00
fruchti 5a45524af3 Add simple smooth animation 2020-07-16 23:11:09 +02:00
fruchti 187c915799 Use integer arithmetic for light sensor 2020-07-16 22:43:39 +02:00
fruchti 3121557afd Add basic gradient output 2020-07-16 22:04:54 +02:00
fruchti 659fdb9004 Add LED order 2020-07-16 20:45:17 +02:00
fruchti b5b2e62b1a Add order array to help with reassignment 2020-07-16 18:43:40 +02:00
fruchti 40d303f7b5 Generate blinking pattern based on LED index 2020-07-16 18:43:27 +02:00
fruchti 19a78f2527 Use default 8 MHz clock, disable PLL
Reducing the frequency to one sixth increases flickering somewhat, but
it's not too bad. More importantly, the current draw (at 5 V) at the
lowest brightness settings (all LEDs white) is reduced from 13 mA to
about 3 mA.
2020-07-16 16:17:35 +02:00
fruchti 8c3bc4222c Tune light sensor parameters 2020-07-16 16:14:43 +02:00
fruchti 8c3a471aba Make brightness depend ~linearly on photocurrent 2020-07-15 22:47:55 +02:00
fruchti fe246bfa6d Use averaged brightness for limit calculation 2020-07-15 22:44:20 +02:00
fruchti ccfdd7aeab Clean up uniform brightness setting 2020-07-15 22:29:34 +02:00
fruchti fc5f7caa14 Set matrix column output speed 2020-07-15 22:27:00 +02:00
fruchti 863a720749 Poll light sensor during startup delay 2020-07-15 15:07:03 +02:00
fruchti d2557e969d Reset row shift register immediately after reset 2020-07-15 15:05:09 +02:00
fruchti 75d280c8ea Remove maximum/minimum brightness decay 2020-07-15 14:07:07 +02:00
fruchti 6d63b76a02 Add basic time-based light sensor code 2020-07-11 21:04:07 +02:00
fruchti fff3b133c1 Add meaningful colour struct, double buffering 2019-12-22 22:52:01 +01:00
fruchti bc062dac9b Add LED matrix control (12×8) 2019-12-22 22:04:05 +01:00
fruchti dc3ce3a777 Increase number of LEDs to 12
Caution: Disables SWD, makes flashing under reset necessary.
2019-12-22 19:42:18 +01:00
fruchti 8891670bb7 Invert LED outputs, set to open drain 2019-12-22 19:05:46 +01:00
fruchti fe7a2f1869 Add basic 9-channel BCM output 2019-12-21 23:41:19 +01:00
fruchti 66381c3cb6 Add firmware wireframe 2019-12-10 23:19:01 +01:00