This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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を入力"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <M5StickC.h> | |
RTC_TimeTypeDef RTC_TimeStruct; | |
unsigned long Time; | |
int state = 0; | |
int timeCnt = 0; | |
int16_t accX = 0; | |
int16_t accY = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |