Commit graph

56 commits

Author SHA1 Message Date
d86edf5e9a
Add nix flake
Provides system-locket platformio
2023-12-22 17:09:34 +01:00
0ca9ca8ad2 Invalid state now frees up allocated memory
Semaphore is reset so receiver can reuse said entry
2023-04-01 11:02:29 +02:00
7eebc7b997 Implement light fading 2023-03-31 12:29:07 +02:00
d335746ddc Define composable command interface 2023-03-30 20:36:16 +02:00
0c9e08af05 Remove unnecessary ternary operator 2023-03-30 20:08:25 +02:00
287801811f Make Invalid default for not implemented functionality 2023-03-30 19:55:46 +02:00
e5e11549b7 Add reset functionality 2023-03-30 19:53:33 +02:00
d06117245d Add reset command 2023-03-30 19:51:41 +02:00
9ebf41739e Switch parser to self contained task class 2023-03-30 17:53:56 +02:00
076ee11c92 Make receiver work
Switch from mutex to bin-semaphore (thread overarching) & Proper failure handling
2023-03-30 17:53:27 +02:00
f97ab5f58b Fix circular buffer index
Index was previously not being increased as statement could not be reached
2023-03-30 17:49:40 +02:00
503c452674 Implement BinarySemaphore freertos wrapper 2023-03-30 17:48:53 +02:00
1c0a3917fc Implement serial interaction 2023-03-25 18:10:25 +01:00
e76f9e8d93 Implement custom barebones circular buffer 2023-03-25 18:09:47 +01:00
3ff75471f6 Implement freertos mutex wrapper 2023-03-25 18:09:28 +01:00
27ed5d0663 Accept T as copy instead of referende
xQueueSend() copies the value, so accepting a reference is misleading
2023-03-25 18:09:11 +01:00
415c5a04b1 Add sleepForever() function 2023-03-25 18:07:57 +01:00
909ca16fd7 Enable clangtidy checking 2023-03-24 17:23:09 +01:00
c25eb340b1 Clangtidy improvements (const & noexcept) 2023-03-24 17:19:03 +01:00
b6fbafba76 Enable -Wall build flag 2023-03-24 16:51:25 +01:00
83454e1f38 Make pinmode for-loop typing more declarative 2023-03-24 16:42:13 +01:00
e61ebc390d Remove unused function declaration 2023-03-24 14:10:28 +01:00
3b553ecb39 Add sleep function 2023-03-24 14:09:00 +01:00
9f4fd4e143 Implement basic light controller logic 2023-03-24 14:08:42 +01:00
da9c24c339 Fully implement callback logic 2023-03-13 13:34:45 +01:00
fac5ec5e83 Add callback function calls to parser 2023-03-11 17:38:23 +01:00
e8ec695273 Implement functional skeleton of message protocol handling 2023-03-11 16:52:25 +01:00
93ff6c8f2e Create FreeRTOS C++ wrappers 2023-03-11 16:35:44 +01:00
dd40b09dc3 Update platformio.ini 2023-03-11 16:35:18 +01:00
8250bbb8f0 Move files from /include to /src 2023-03-11 16:35:06 +01:00
c68dfed3eb Initialize modern C++ rewrite 2023-03-11 14:16:55 +01:00
30ea3a3fd7 Switch default mux position 2022-09-20 20:44:47 +02:00
aaf72ff268 Add eeprom
Eeproms outlive flash, which quickly dies during light state preservation.
2022-09-17 17:29:23 +02:00
bb52e186f3 Fix first pcb batch issues
Reassign input only pins, external uart connected to flash spi & mux blocking uart access
2022-09-17 17:07:48 +02:00
35c41d131f Add safe clearBuffer websocket method 2022-04-13 19:09:03 +02:00
5c41e066e0 Implement websocket receive 2022-04-13 18:42:39 +02:00
545818b4de Change hostname 2022-04-11 21:52:26 +02:00
e8d16b35e2 Make code more readable 2022-04-11 16:33:27 +02:00
090b14e38e Update com port 2022-04-10 22:14:02 +02:00
71bff35130 Fix pincommit not working after setup 2022-04-10 22:13:39 +02:00
11a511e2ee Fix pinmapping 2022-04-10 22:12:40 +02:00
13a0a1b20c Set hostname 2022-04-10 18:21:11 +02:00
c06fe57358 Fix CI Build fail due to missing credentials 2022-04-10 18:12:58 +02:00
512694c09e Remove interactive ibom 2022-04-10 17:58:53 +02:00
e84896f12e Remove unused script 2022-04-10 17:57:18 +02:00
9f7e20c807 Implement WiFi connection timeout 2022-04-10 17:56:23 +02:00
baa19d730b Make loop more readable 2022-04-10 17:47:07 +02:00
57c4c3236e Fix 'Too many messages queued' 2022-04-10 17:20:40 +02:00
e9b3402f27 Fix gitignore credentials header file 2022-04-10 17:16:00 +02:00
c764a7cdee First rough implementation of websockets 2022-04-10 17:12:44 +02:00