issues
search
GameWithPixels
/
DiceFirmware
Pixels dice firmware code.
MIT License
15
stars
1
forks
source link
Compile against only one accelerometer hardware
#10
Closed
obasille
closed
2 years ago
obasille
commented
2 years ago
Update IS2DE12, MXC4005XC and KXTJ3 to have the same definitions for init, hook, unHook, read, enableInterrupt, disableInterrupt and clearInterrupt
Create one generic header that declares only those common functions
Replace "switch" statements in accelerometer.cpp to call those generic functions
Change LIS2DE12, MXC4005XC and KXTJ3 to match the generic namespace
Select correct implementation in Makefile