tanakamasayuki / efont Goto Github PK
View Code? Open in Web Editor NEWefont Font Data for Arduino
efont Font Data for Arduino
素晴らしいライブラリをありがとうございます!
使わせていただいてコンパイルエラーが発生することが分かったので共有致します。
1.0.6以降でコンパイルエラーが発生するようです。1.0.5以下では発生しませんでした。
エラーの内容は次のとおりです。
In file included from /Users/suin/Documents/Arduino/libraries/efont_Unicode_Font_Data/src/efontWrapper.cpp:3:
/Users/suin/Documents/Arduino/libraries/efont_Unicode_Font_Data/src/efontWrapper.h:15:10: fatal error: utility/In_eSPI.h: No such file or directory
#include <utility/In_eSPI.h>
^~~~~~~~~~~~~~~~~~~
コンパイルしたコードは次です。
#include <M5CoreInk.h>
#include "efontEnableAll.h"
#include "efont.h"
#include "efontM5StackCoreInk.h"
Ink_Sprite inkPageSprite(&M5.M5Ink);
void setup() {
M5.begin();
if ( !M5.M5Ink.isInit()) {
Serial.printf("Ink Init faild");
while (1) {
delay(100);
}
}
M5.M5Ink.clear();
delay(1000);
//creat ink refresh Sprite
if ( inkPageSprite.creatSprite(0, 0, 200, 200, true) != 0 ) {
Serial.printf("Ink Sprite creat faild");
}
printEfont(&inkPageSprite, "Hello\n");
printEfont(&inkPageSprite, "こんにちは\n");
printEfont(&inkPageSprite, "你好\n");
printEfont(&inkPageSprite, "안녕하세요\n");
printEfont(&inkPageSprite, "Доброе утро\n");
printEfont(&inkPageSprite, "Päivää\n");
printEfont(&inkPageSprite, "Здравствуйте\n");
printEfont(&inkPageSprite, "efont\nPrint Test", 0, 130, 2, 1);
inkPageSprite.pushSprite();
}
void loop() {
}
M5CoreInkのバージョンは0.0.2を使用しています。
efont.h - line 4 the #include <arduino.h>
should be #include <Arduino.h>
Lower case probably works on a Windows machine, but Linux and Mac OS treat file names different - and "A" and "a" are not the same.
Hello. @tanakamasayuki san. Is this repository active?
Thank you for your contribution to library.
I have created an efont wrapper class for ESP32 to input your BDF font Library into the Adafruit-GFX-Library and display it on an LED matrix.
MIT License?
Can I publish it on GitHub?
Or would you be willing to merge it into your library?
Thank you very much.
素晴らしいライブラリのご提供ありがとうございます。
いつも利用させていただいております。
M5StickCの対応となっているのですが、
M5StackやESP32でも使用できると思い、
ライブラリに少し手を加えてみました。
ソースを添付いたします。
もしよろしければefontライブラリに
ESP32にも対応していただけると助かります。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.