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 <Arduino.h> | |
| #include <SPI.h> | |
| #include <SD.h> | |
| #include <M5Unified.h> | |
| #include <M5GFX.h> | |
| namespace { | |
| constexpr uint8_t kSdCsPin = 47; | |
| constexpr uint8_t kSdSckPin = 15; | |
| constexpr uint8_t kSdMosiPin = 13; |
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 <driver/spi_slave.h> | |
| #include <M5UnitRCA.h> | |
| #include <M5Unified.h> | |
| const uint16_t logical_width_pix = 240, logical_height_pix = 180; // NTSC出力範囲 | |
| const uint16_t canvas_width_pix = 240, canvas_height_pix = 180; // 実際に使用する範囲 | |
| int buffer_size = canvas_width_pix * canvas_height_pix; | |
| // ========================================== | |
| // 描画・通信モードの選択 |
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 <M5UnitRCA.h> | |
| #include <M5Unified.h> | |
| // M5UnitRCA | |
| const uint16_t canvas_width_pix = 240, canvas_height_pix = 180; | |
| const uint16_t panel_width_pix = 240, panel_height_pix = 180; | |
| M5UnitRCA display(canvas_width_pix, canvas_height_pix, panel_width_pix, panel_height_pix, M5UnitRCA::signal_type_t::NTSC, M5UnitRCA::use_psram_t::psram_no_use, 26, 128); | |
| M5Canvas canvas(&display); |
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
| /* | |
| * [M5-UniSphere-3D] | |
| * * Copyright (c) 2026 Yuikawa-Akira | |
| * This software includes code from : https://github.com/K-Yama2010/3D_Sphere_Pong_Wars | |
| * Copyright (c) 2025 K-Yama2010 | |
| * * Released under the MIT License. | |
| */ | |
| #include <M5Unified.h> |
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 <FastLED.h> | |
| #include <M5Unified.h> | |
| #include <Avatar.h> | |
| #include <arduinoFFT.h> | |
| //Stack-chan | |
| using namespace m5avatar; | |
| Avatar avatar; | |
| //debug display |
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 <WiFi.h> | |
| #include <utility> | |
| #include <esp_http_server.h> | |
| #include <esp_camera.h> | |
| #include <FastLED.h> | |
| #include <SPI.h> | |
| #include <SD.h> | |
| #include <M5Unified.h> | |
| #define KEY_PIN 1 |
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 <unit_rolleri2c.hpp> | |
| #include <FastLED.h> | |
| #include <SD.h> | |
| #include <M5Unified.h> | |
| #include <M5UnitRCA.h> | |
| // wavファイル | |
| const int maxFile = 100; | |
| String fileList[maxFile]; | |
| int fileCount = 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
| /* | |
| 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; |
NewerOlder