BluetoothDispatcher refactoring
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user