Skip to content

Instantly share code, notes, and snippets.

@Yuikawa-Akira
Yuikawa-Akira / pong_wars_NanoC6.ino
Created June 24, 2025 11:04
Pong Wars for Unit Puzzle
/*
PONG WARS部分は以下を参考にした
https://github.com/anoken/pong-wars-forM5Stack
*/
#include <M5Unified.h>
#include <FastLED.h>
M5Canvas canvas_0;
M5Canvas canvas_LED;
#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;
@Yuikawa-Akira
Yuikawa-Akira / Random-Particle-Snow-for-Tab5.ino
Last active May 23, 2025 17:40
Random-Particle-Snow-for-Tab5
#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;
#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;
#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;
@Yuikawa-Akira
Yuikawa-Akira / AtomS3R_pixel-art_style_camera.ino
Last active April 11, 2025 15:29
AtomS3R Pixel-art style camera
#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