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 <M5StickCPlus.h> | |
#include <IRsend.h> | |
static IRsend irsend(32); | |
void send(bool up) { | |
const uint64_t code = up ? 0x41B65DA2 : 0x41B6DD22; | |
for (auto i = 0; i < 4; ++i) { | |
irsend.sendNEC(code, 32); | |
::delay(70); |
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 <FastLED.h> | |
constexpr int pin_fader = 33; | |
constexpr int pin_led = 32; | |
constexpr int led_count = 14; | |
CRGB leds[led_count]; | |
long show = 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 <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; |
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> | |
constexpr int pin_fader = 33; | |
void setup() { | |
Serial.begin(115200); | |
::pinMode(pin_fader, INPUT); | |
} | |
void loop() { |
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
#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 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
#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 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 <M5EPD.h> | |
void setup() { | |
M5.begin(); | |
} | |
void loop() { | |
if (!M5.TP.avaliable()) { | |
return; | |
} |
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 <M5EPD.h> | |
int lastFingers; | |
int eventIndex; | |
u_long events[4]; | |
void pushTouchEvent(bool down) { | |
if (!down && (eventIndex <= 0)) { | |
return; | |
} |
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 <M5EPD.h> | |
void setup() { | |
M5.begin(); | |
} | |
void loop() { | |
if (!M5.TP.avaliable()) { | |
return; | |
} |
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 <M5EPD.h> | |
#include <M5GFX.h> | |
void setup() { | |
M5.begin(); | |
M5GFX display; | |
display.begin(); | |
display.invertDisplay(false); | |
display.clear(TFT_WHITE); |