Commit graph

54 commits

Author SHA1 Message Date
fruchti 87b734cd93 Add larger photo for Gitea 2023-03-12 13:37:43 +01:00
fruchti 6b55403334 Add animation LUT generation script 2020-10-04 22:43:42 +02:00
fruchti 72a55fb026 Add tree photo 2020-10-04 22:40:06 +02:00
fruchti 76f69d33f9 Add project description, licence information 2020-10-03 20:19:31 +02:00
fruchti f3edcd1c26 Fix BCM comments 2020-09-27 23:53:08 +02:00
fruchti 3a6c0a6391 Fix dimming overflow 2020-09-21 10:36:50 +02:00
fruchti 6d1481fb95 Tune light sensor parameters 2020-09-21 00:34:32 +02:00
fruchti ad433e2452 Move gamma correction from software to LUT 2020-09-21 00:33:44 +02:00
fruchti e13d522f4e Remove light sensor auto-normalisation 2020-09-20 19:00:55 +02:00
fruchti 9f230125d8 Fix NVS erase return typo 2020-09-20 18:59:59 +02:00
fruchti ea2049efb2 Make NVS saving more resilient 2020-09-20 18:17:37 +02:00
fruchti 8ac36022e0 Also save to NVS from time to time 2020-09-20 18:00:35 +02:00
fruchti a3799b02a0 Save to NVS on suspend and wake-up 2020-09-20 17:40:13 +02:00
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 2a3db7b9fb Fix EOF newlines 2020-09-02 00:12:14 +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 bf50402ce2 Track suspend status in LED driver 2020-07-17 00:17:35 +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 ddc5c5f1f1 Use LED_COUNT define 2020-07-16 18:17:54 +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 5ffaee918a Wait for measurement to complete light sensor init 2020-07-15 13:47:59 +02:00
fruchti 29ed80730d Update light sensor timing for 1 nF capacitor 2020-07-15 13:47:24 +02:00
fruchti 70ea4a2379 Make startup delay longer for easier programming 2020-07-15 13:46:40 +02:00
fruchti 6d63b76a02 Add basic time-based light sensor code 2020-07-11 21:04:07 +02:00
fruchti dc7bdb006c Ignore VS Code files 2020-07-11 21:03:56 +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