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<M5Unified.h> | |
String romaHenkan[][4] = { | |
"-", "ー" ,"ー","", | |
"n'", "ん" ,"ン","", | |
"xtsu","っ" ,"ッ","", | |
"kk","っ" ,"ッ","k", | |
"ss","っ" ,"ッ","s", |
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
/* | |
* SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD | |
* SPDX-License-Identifier: MIT | |
* M5Stack LLM Module で日本語対話。Serial MonitorでBoth BL&CRを設定するとよいです。 | |
* | |
* 変更元プログラム:https://gist.github.com/ksasao/37425d3463013221e7fd0f9ae5ab1c62 | |
* Faces keyboard対応 2025/01/25 @shikarunochi | |
*/ | |
#include <Arduino.h> | |
#include <M5Unified.h> |
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 <SD.h> | |
#include <SPI.h> | |
#include <M5Unified.h> | |
#include "lgfx_ST7789.h" | |
LGFX_ST7789 m5lcd; | |
void setup(){ | |
Serial.begin(115200); | |
//CSなしLCDをspi_mode=0で動作させるための処理 | |
constexpr int PANEL2_RST = 19; // 外部LCDのRSTピン番号 |
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
#ifndef __M5GFX_ST7789__ | |
#define __M5GFX_ST7789__ | |
#include <lgfx/v1/panel/Panel_ST7789.hpp> | |
#include <M5GFX.h> | |
class M5GFX_ST7789 : public M5GFX | |
{ | |
lgfx::Bus_SPI::config_t _bus_cfg; |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<!-- | |
国立図書館デジタルコレクション MZ-700ジョイフルパック のプログラムをベースにしています。 | |
https://dl.ndl.go.jp/pid/12631887/1/75 | |
--> | |
<head> | |
<meta charset="UTF-8"> | |
<title>MZ-700 GRAPH</title> | |
<script type="text/javascript"> |
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
#read punched tape | |
#MaixPy参考にしたサイト | |
#https://qiita.com/Lathe/items/7aeea7beaf05dbf8a539 | |
#https://qiita.com/Lathe/items/0f0c9b75928d52a7d502 | |
import sensor, image, time, lcd | |
lcd.init(freq=15000000) | |
sensor.reset() |
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 <M5Atom.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <WiFi.h> | |
#include "time.h" | |
#define SCREEN_WIDTH 128 // OLED display width, in pixels | |
#define SCREEN_HEIGHT 64 // OLED display height, in pixels | |
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) |
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 <M5Atom.h> | |
#include <M5AtomDisplay.h> | |
#include "hid_server/hid_server.h" | |
M5AtomDisplay display; | |
void setup() { | |
M5.begin(); | |
display.init(); |
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
#ImageSender for ESP32 ScreenShotReceiver https://github.com/lovyan03/ESP32_ScreenShotReceiver | |
import sys | |
import socket | |
from PIL import Image | |
import io | |
IMAGE_QUALITY = 60 | |
LCD_WIDTH = 320 | |
LCD_HEIGHT = 320 |
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
//本体 LCD と 外部 240x240小型液晶での出力。うまくいきました! | |
// https://twitter.com/shikarunochi/status/1354455285046231043?s=20 | |
#include <LovyanGFX.hpp> | |
#define LGFX_M5STACK | |
static LGFX lcd; | |
struct EXLCD_LGFX_Config | |
{ | |
static constexpr spi_host_device_t spi_host = HSPI_HOST; //本体LCDが VSPI を使っているので、別のピンで HSPI を使う。 | |
//VSPIでピンを共有する方法もあります。 | |
//https://gist.github.com/lovyan03/7e0cd8362d7252124ae281526d5eaac1 |
NewerOlder