mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Add distance sensor, rewrite OLED to use new i2c library
This commit is contained in:
@@ -42,6 +42,9 @@ inline std::unordered_map<int, int> MODULE_TO_NUM_CHANNELS_MAP {
|
||||
#define OLED_SDA 17
|
||||
#define OLED_SCL 18
|
||||
|
||||
#define DISTANCE_SDA 17
|
||||
#define DISTANCE_SCL 18
|
||||
|
||||
inline std::unordered_map<uint8_t, uint8_t> CHANNEL_TO_0_DEG_MAP{{0, 9} };
|
||||
inline std::unordered_map<uint8_t, uint8_t> CHANNEL_TO_90_DEG_MAP{{0, 7} };
|
||||
inline std::unordered_map<uint8_t, uint8_t> CHANNEL_TO_180_DEG_MAP{{0, 8} };
|
||||
|
||||
Reference in New Issue
Block a user