Commit Graph

53 Commits

Author SHA1 Message Date
King Kévin b9fa7d77d0 stop receiving command in master mode 2022-10-19 13:57:09 +02:00
King Kévin 74312ca428 fix code sending 2022-10-19 13:56:42 +02:00
King Kévin b4d28e0ee5 improve LED color setting reliability 2022-10-19 13:56:30 +02:00
King Kévin d66bdff1d5 only power used peripherals 2022-10-19 13:55:53 +02:00
King Kévin ae2711366f stm8s: fix PCKEN definition 2022-10-19 13:54:51 +02:00
King Kévin c7f6a3ae38 add shake stay awake time 2022-10-13 16:27:53 +02:00
King Kévin 9b16b17628 add master broacast time 2022-10-13 16:27:33 +02:00
King Kévin 9696a136f2 save color when going to sleep 2022-10-13 16:26:14 +02:00
King Kévin ad3b844978 send and receive master/slave codes 2022-10-13 16:05:09 +02:00
King Kévin 1ea913a058 minor, fix debug output 2022-10-13 16:04:02 +02:00
King Kévin 90925ea959 add master mode 2022-10-13 16:03:40 +02:00
King Kévin eaa3447fad read color from EEPROM 2022-10-13 16:02:33 +02:00
King Kévin 7121f8b541 minor: don't automatically capture after sending IR 2022-10-13 16:00:57 +02:00
King Kévin 9fddbd4449 fix RGB setting 2022-10-13 15:59:11 +02:00
King Kévin fb2dda3fb3 add UART transmit command 2022-10-13 13:03:51 +02:00
King Kévin 2de071edb2 minor, improve main loop 2022-10-13 13:03:17 +02:00
King Kévin b689c8d94c add UART RX 2022-10-13 13:02:53 +02:00
King Kévin 02e5fbdbf5 main: periodically transmit code 2022-10-12 17:37:16 +02:00
King Kévin e813e6bf46 main: add NEC code transmission 2022-10-12 17:37:00 +02:00
King Kévin 536ca1f755 main: put IR capture in function 2022-10-12 17:36:04 +02:00
King Kévin b493d982ad main: fix NEC codes 2022-10-12 17:34:57 +02:00
King Kévin 058ab29990 main: first NEC decoding 2022-10-12 17:34:27 +02:00
King Kévin 68a096be7b main: minor, remove debug message 2022-10-12 12:17:00 +02:00
King Kévin d54b5f1d26 main: add IR NEC decoding 2022-10-12 12:16:17 +02:00
King Kévin 0e7914ad9d main: add rest time parameter 2022-10-12 12:14:03 +02:00
King Kévin 21067f5f4c main: control RGB LED using PWM 2022-10-11 19:06:28 +02:00
King Kévin 75fb553172 main: update RGB LED init 2022-10-11 18:35:27 +02:00
King Kévin 73d6c4917d main: remove onboard LED 2022-10-11 18:34:40 +02:00
King Kévin eed88beebe main: config pin, IR out, shake wakeup 2022-09-26 18:05:34 +02:00
King Kévin cc63108403 stm8: add halt assembly 2022-09-26 18:01:16 +02:00
King Kévin c724a5b477 stm8: fix OPT names 2022-09-26 18:01:03 +02:00
King Kévin 8535a738de stm8: make all OPT2 fields available 2022-09-26 18:00:44 +02:00
King Kévin a5d5844237 stm8: fix timer definition typo 2022-09-26 18:00:08 +02:00
King Kévin 53c9af3ea7 lib: remove unused lib 2022-09-15 19:33:24 +02:00
King Kévin 34b10750af doc: minor, fox extension 2022-06-22 12:34:11 +02:00
King Kévin f73fd9ec0d doc: use markdown syntax 2022-06-22 11:08:36 +02:00
King Kévin 52d130a832 softi2c_master: add timeout to prevent infinite loop 2022-06-22 11:07:39 +02:00
King Kévin 04901a6ce1 softi2c_master: add software implementation I²C library 2022-06-22 11:07:39 +02:00
King Kévin 158d1899b9 i2c_master: mention more stable software implementation 2022-06-22 11:06:52 +02:00
King Kévin e22bef850b main: minor, improve code 2022-06-22 11:06:52 +02:00
King Kévin 30a5bc447c i2c_master: minor, remove irrelevant comment 2022-06-22 11:04:44 +02:00
King Kévin 3afd4eac87 i2c_master: make error checking simpler 2022-06-22 11:04:44 +02:00
King Kévin a7af5896a6 i2c_master: remove TIMEOUT since it makes little sense when sleeping 2022-06-22 11:04:44 +02:00
King Kévin 5325deaf59 i2c_master: sleep to reduce erronous pulse, and use interrupts to wake up 2022-06-22 11:04:44 +02:00
King Kévin 2e19d95dc1 i2c_master: improve flag check and add timeout 2022-06-22 11:04:44 +02:00
King Kévin 5879b0309e main: use header file 2022-06-22 11:03:22 +02:00
King Kévin 1d2be7ceb2 add I²C master library 2022-06-22 11:03:22 +02:00
King Kévin 81152cfee2 eeprom_blockprog: add EEPROM block programing library 2022-06-22 11:03:22 +02:00
King Kévin 9b5e9bb2b3 make: allow multiple source files 2022-06-22 11:03:22 +02:00
King Kévin b3b2eb4782 stm8s: fix data unlocking keys 2022-06-22 11:03:22 +02:00