Skip to content

Instantly share code, notes, and snippets.

#include <Wire.h>
#include <PCA9685.h> //PCA9685用ヘッダーファイル(秋月電子通商作成)
#include <BlynkSimpleEsp32_BLE.h>
#include <BLEDevice.h>
#include <BLEServer.h>
#define BLYNK_USE_DIRECT_CONNECT
#define BLYNK_PRINT Serial
#include <M5Core2.h>
#include <Preferences.h>
#include <Fonts/EVA_20px.h>
#include <stdio.h>
#include <Kalman.h> // https://github.com/TKJElectronics/KalmanFilter
#define ENCx_A 35
#define ENCx_B 36
#include <M5StickC.h>
RTC_TimeTypeDef RTC_TimeStruct;
unsigned long Time;
int state = 0;
int timeCnt = 0;
int16_t accX = 0;
int16_t accY = 0;
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
//#include <M5StickC.h>
#include <Wire.h>
// You should get Auth Token in the Blynk App.
char auth[] = "BlynkアプリのYourAuthTokenを入力";