2020-05-21から1日間の記事一覧

BlynkでM5 Balaを動かすテスト

#define BLYNK_PRINT Serial #define BLYNK_USE_DIRECT_CONNECT #include <BlynkSimpleEsp32_BLE.h> #include <BLEDevice.h> #include <BLEServer.h> #include <M5Stack.h> char auth[] = "YOUR_AUTH_TOKEN"; #include <M5Stack.h> #include <Wire.h> #include <Preferences.h> #include "imuCalibration.h" #include "M5Ba…</preferences.h></wire.h></m5stack.h></m5stack.h></bleserver.h></bledevice.h></blynksimpleesp32_ble.h>

M5 Balaのテスト

以下のレポジトリから4つをダウンロードしておく M5Bala.cpp, M5Bala.h, imuCalibration.cpp, imuCalibration.h github.com #include <M5Stack.h> #include <Wire.h> #include <Preferences.h> #include "imuCalibration.h" #include "M5Bala.h" Preferences preferences; M5Bala m5bala(Wire)</preferences.h></wire.h></m5stack.h>…