Skip to content

Instantly share code, notes, and snippets.

View lovyan03's full-sized avatar

lovyan03 lovyan03

View GitHub Profile
@hollyhockberry
hollyhockberry / main.cpp
Created November 19, 2023 22:57
Sample to check behavior of native env.
#include <M5Unified.h>
M5Canvas sprite;
void setup() {
M5.begin();
sprite.createSprite(120, 120);
sprite.drawCircle(sprite.width() >> 1, sprite.height() >> 1, sprite.width() >> 2, RED);
sprite.drawRect(0, 0, sprite.width() - 1, sprite.height() - 1, RED);
@tobozo
tobozo / CompoundOscillation.ino
Created April 15, 2022 16:43
Compound oscillation demo for ESP32
// Compound oscillation demo for ESP32
// Loosely coded by tobozo (c+) apr 2022 -
// Inspired by this GIF
// - https://twitter.com/bayraitt/status/1514499189975134210
#include <ESP32-Chimera-Core.h> // https://github.com/tobozo/ESP32-Chimera-Core
static LGFX &tft(M5.Lcd);
static LGFX_Sprite* spriteLines = new LGFX_Sprite( &tft );
static LGFX_Sprite* spriteMix = new LGFX_Sprite( &tft );
@hollyhockberry
hollyhockberry / main.cpp
Last active June 14, 2024 08:44
M5Paper: LVGL Sample (with LGFX)
#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;
#include <M5Stack.h>
#include "SimpleBeep.h"
void setup(void){
M5.begin();
sb.init();
}
void loop(void){
@natevw
natevw / gboard_morse.md
Last active March 26, 2024 09:51
A list of Morse code supported by GBoard Android Keyboard

Morse code supported by GBoard Android Keyboard

Google's GBoard software keyboard has a Morse code mode.

Here's what characters it currently supports:

  • .-a
  • -...b
  • -.-.c
  • -..d