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
  1. Update IS2DE12, MXC4005XC and KXTJ3 to have the same definitions for init, hook, unHook, read, enableInterrupt, disableInterrupt and clearInterrupt
  2. Create one generic header that declares only those common functions
  3. Replace "switch" statements in accelerometer.cpp to call those generic functions
  4. Change LIS2DE12, MXC4005XC and KXTJ3 to match the generic namespace
  5. Select correct implementation in Makefile