BluetoothDispatcher refactoring

This commit is contained in:
2024-01-06 12:11:06 +07:00
parent b86af180ab
commit 3c2889b8f7
3 changed files with 64 additions and 37 deletions

View File

@@ -10,6 +10,7 @@
#include "board_pins.h"
#include <Arduino.h>
TwoWire i2c = TwoWire(0);
Barometer barometer(new GyverBME280(i2c));
MPU mpu(new MPU6050(MPU6050_DEFAULT_ADDRESS, &i2c));
@@ -19,6 +20,7 @@ BluetoothDispatcher bluetoothDispatcher(new BluetoothSerial());
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial.print("Ininitialize I2C...");
Serial.println(i2c.begin(I2C_SDA_PIN, I2C_SCL_PIN, 400000));