Skip to content

Commit 86a104d

Browse files
committed
Add more setting for ToF90
1 parent ca31876 commit 86a104d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

examples/UnitUnified/SimpleDisplay/SimpleDisplay.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
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"

examples/UnitUnified/SimpleDisplay/main/SimpleDisplay.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@
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+
1429
namespace {
1530
auto& lcd = M5.Display;
1631
m5::unit::UnitUnified Units;
@@ -20,6 +35,8 @@ m5::unit::UnitToF unit;
2035
m5::unit::UnitToF4M unit;
2136
#elif defined(USING_HAT_TOF)
2237
m5::unit::HatToF unit;
38+
#elif defined(USING_UNIT_TOF90)
39+
m5::unit::UnitToF90 unit;
2340
#else
2441
#error Choose unit please!
2542
#endif

0 commit comments

Comments
 (0)