Add endstops, light_sensor, test, many fixes

- Added endstop and light_sensor module
 - Improved configuration by splitting wiring configs to boards.h
 - Added a unit test for argument parsing
 - Fixed many smaller bugs
This commit is contained in:
Filip Ayazi 2021-05-25 01:40:09 +01:00
parent 8f66bb7da9
commit 35d969aadd
16 changed files with 875 additions and 64 deletions

24
src/dummyEEPROM.h Normal file
View file

@ -0,0 +1,24 @@
#include <stdint.h>
struct EEPROMClass
{
//Basic user access methods.
uint8_t read(int idx) { return -1; }
void write(int idx, uint8_t val) { return; }
void update(int idx, uint8_t val) { return; }
template <typename T>
T &get(int idx, T &t)
{
return t;
}
template <typename T>
const T &put(int idx, const T &t)
{
return t;
}
};
static EEPROMClass EEPROM;