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 <M5EPD.h> | |
void setup() { | |
M5.begin(); | |
M5.EPD.SetRotation(90); | |
M5.EPD.Clear(true); | |
M5EPD_Canvas canvas(&M5.EPD); | |
canvas.createCanvas(540, 960); | |
canvas.drawBmpFile(SD, "/inaba.bmp", 0, 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 <M5EPD.h> | |
#include <M5GFX.h> | |
// SDカードに以下のファイルを用意 | |
// /inaba.bmp 540x540 24bit | |
// /inaba2.bmp 270x270 24bit | |
void setup() { | |
M5.begin(); |
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 <M5EPD.h> | |
#include <M5GFX.h> | |
void setup() { | |
M5.begin(); | |
M5GFX display; | |
display.begin(); | |
display.invertDisplay(false); | |
display.clear(TFT_WHITE); |
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 <M5EPD.h> | |
void setup() { | |
M5.begin(); | |
} | |
void loop() { | |
if (!M5.TP.avaliable()) { | |
return; | |
} |
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 <M5EPD.h> | |
int lastFingers; | |
int eventIndex; | |
u_long events[4]; | |
void pushTouchEvent(bool down) { | |
if (!down && (eventIndex <= 0)) { | |
return; | |
} |
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 <M5EPD.h> | |
void setup() { | |
M5.begin(); | |
} | |
void loop() { | |
if (!M5.TP.avaliable()) { | |
return; | |
} |
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 LGFX_AUTODETECT | |
#define LGFX_USE_V1 | |
#include <lvgl.h> | |
#include <M5Core2.h> | |
#include <LovyanGFX.hpp> | |
constexpr uint16_t screenWidth = 320; | |
constexpr uint16_t screenHeight = 240; | |
lv_disp_draw_buf_t draw_buf; |
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 LGFX_AUTODETECT | |
#define LGFX_USE_V1 | |
#include <lvgl.h> | |
#include <M5EPD.h> | |
#include <LovyanGFX.hpp> | |
static const uint16_t screenWidth = 960; | |
static const uint16_t screenHeight = 540; | |
lv_disp_draw_buf_t draw_buf; |
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 <Arduino.h> | |
constexpr int pin_fader = 33; | |
void setup() { | |
Serial.begin(115200); | |
::pinMode(pin_fader, INPUT); | |
} | |
void loop() { |
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 <Arduino.h> | |
#include <FastLED.h> | |
constexpr int pin_fader = 33; | |
constexpr int pin_led = 32; | |
constexpr int led_count = 14; | |
CRGB leds[led_count]; | |
long show = 0; |
OlderNewer