This file contains hidden or 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
/* | |
PONG WARS部分は以下を参考にした | |
https://github.com/anoken/pong-wars-forM5Stack | |
*/ | |
#include <M5Unified.h> | |
#include <FastLED.h> | |
M5Canvas canvas_0; | |
M5Canvas canvas_LED; |
This file contains hidden or 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 <M5Unified.h> | |
// DVDのロゴ | |
const uint16_t dvdWidth = 114; | |
const uint16_t dvdHeight = 64; | |
const uint16_t dvdSize = 1887; | |
extern const unsigned char dvdPng[]; | |
// ロゴの初期位置 | |
int logoX = 0; |
This file contains hidden or 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 <M5Unified.h> // 0.2.7 以降 | |
// --- パラメータ設定 --- | |
const int dotScale = 16; // 2の倍数 | |
const int CANVAS_WIDTH = 1280 / dotScale; | |
const int CANVAS_HEIGHT = 720 / dotScale; | |
// ドット落下速度 | |
const int FALL_SPEED_MS = 10; |
This file contains hidden or 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 <esp_camera.h> | |
#include <SPI.h> | |
#include <SD.h> | |
#include <M5UnitLCD.h> | |
#include <M5Unified.h> | |
#include "Unit_Encoder.h" | |
#include <algorithm> | |
#define POWER_GPIO_NUM 18 | |
camera_fb_t* fb; |
This file contains hidden or 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 <esp_camera.h> | |
#include <SPI.h> | |
#include <SD.h> | |
//#include <M5UnitLCD.h> | |
#include <M5UnitGLASS2.h> | |
#include <M5Unified.h> | |
#include "Unit_Encoder.h" | |
#define POWER_GPIO_NUM 18 | |
camera_fb_t* fb; |
This file contains hidden or 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 <esp_camera.h> | |
#include <FastLED.h> | |
#include <SPI.h> | |
#include <SD.h> | |
#include <M5Unified.h> | |
#define KEY_PIN 1 | |
#define LED_PIN 2 | |
#define POWER_GPIO_NUM 18 |