first commit

This commit is contained in:
Alejandro Guerrero 2026-09-27 17:21:39 +02:00
commit e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions

View file

@ -0,0 +1,52 @@
// このサンプルの実行にはefontが必要です。
// need efont to run this example.
//
// URL : https://github.com/tanakamasayuki/efont
//
// 使用する文字セットに応じたヘッダをincludeします。
// Include a header corresponding to the character set used.
//#include <efontEnableAll.h>
//#include <efontEnableAscii.h>
//#include <efontEnableCJK.h>
//#include <efontEnableCn.h>
#include <efontEnableJa.h>
//#include <efontEnableJaMini.h>
//#include <efontEnableKr.h>
//#include <efontEnableTw.h>
// efontのフォントデータをincludeします。
// Include the font data of efont.
#include <efontFontData.h>
// LovyanGFXより先に efontのincludeが必要です。
// need to include efont before LovyanGFX.
#include <LovyanGFX.hpp>
static LGFX lcd;
void setup()
{
lcd.init();
// setFont関数に引数efontを指定すると、printやdrawString等でefontを使用できます。
lcd.setFont(&fonts::efont);
lcd.setTextWrap(true, true);
}
void loop()
{
lcd.setTextColor(random(0x10000), random(0x10000));
lcd.setTextSize(random(1,3), random(1,3));
lcd.print("Hello");
lcd.print("こんにちは");
lcd.print("你好");
lcd.print("안녕하세요");
lcd.print("Доброе утро");
lcd.print("Päivää");
lcd.print("Здравствуйте");
delay(1000);
}