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 9
9
// *************************************************************
10
10
// Choose one define symbol to match the unit you are using
11
11
// *************************************************************
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)
13
13
// For UnitToF
14
14
// #define USING_UNIT_TOF
15
15
// For UnitToF4M
16
16
// #define USING_UNIT_TOF4M
17
17
// For HatToF
18
18
// #define USING_HAT_TOF
19
+ // For UnitToF90
20
+ // #define USING_UNIT_TOF90
19
21
#endif
20
22
// *************************************************************
21
23
#include " main/SimpleDisplay.cpp"
Original file line number Diff line number Diff line change 11
11
#include < M5UnitUnifiedTOF.h>
12
12
#include < M5Utility.h>
13
13
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
+
14
29
namespace {
15
30
auto & lcd = M5.Display;
16
31
m5::unit::UnitUnified Units;
@@ -20,6 +35,8 @@ m5::unit::UnitToF unit;
20
35
m5::unit::UnitToF4M unit;
21
36
#elif defined(USING_HAT_TOF)
22
37
m5::unit::HatToF unit;
38
+ #elif defined(USING_UNIT_TOF90)
39
+ m5::unit::UnitToF90 unit;
23
40
#else
24
41
#error Choose unit please!
25
42
#endif
You can’t perform that action at this time.
0 commit comments