File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
examples/UnitUnified/SimpleDisplay Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 99// *************************************************************
1010// Choose one define symbol to match the unit you are using
1111// *************************************************************
12- #if !defined(USING_UNIT_TOF) && !defined(USING_UNIT_TOF4M) && !defined(USING_HAT_TOF)
12+ #if !defined(USING_UNIT_TOF) && !defined(USING_UNIT_TOF4M) && !defined(USING_HAT_TOF) && !defined(USING_UNIT_TOF90)
1313// For UnitToF
1414// #define USING_UNIT_TOF
1515// For UnitToF4M
1616// #define USING_UNIT_TOF4M
1717// For HatToF
1818// #define USING_HAT_TOF
19+ // For UnitToF90
20+ // #define USING_UNIT_TOF90
1921#endif
2022// *************************************************************
2123#include " main/SimpleDisplay.cpp"
Original file line number Diff line number Diff line change 1111#include < M5UnitUnifiedTOF.h>
1212#include < M5Utility.h>
1313
14+ // *************************************************************
15+ // Choose one define symbol to match the unit you are using
16+ // *************************************************************
17+ #if !defined(USING_UNIT_TOF) && !defined(USING_UNIT_TOF4M) && !defined(USING_HAT_TOF) && !defined(USING_UNIT_TOF90)
18+ // For UnitToF
19+ // #define USING_UNIT_TOF
20+ // For UnitToF4M
21+ // #define USING_UNIT_TOF4M
22+ // For HatToF
23+ // #define USING_HAT_TOF
24+ // For UnitToF90
25+ // #define USING_UNIT_TOF90
26+ #endif
27+ // *************************************************************
28+
1429namespace {
1530auto & lcd = M5.Display;
1631m5::unit::UnitUnified Units;
@@ -20,6 +35,8 @@ m5::unit::UnitToF unit;
2035m5::unit::UnitToF4M unit;
2136#elif defined(USING_HAT_TOF)
2237m5::unit::HatToF unit;
38+ #elif defined(USING_UNIT_TOF90)
39+ m5::unit::UnitToF90 unit;
2340#else
2441#error Choose unit please!
2542#endif
You can’t perform that action at this time.
0 commit comments