U8g2_for_Adafruit_GFX icon indicating copy to clipboard operation
U8g2_for_Adafruit_GFX copied to clipboard

Hi, I have some 40KB fonts. How can I save them in flash of esp8266? I've tried to add "PROGMEM" definition, but I will report an error

Open jie326513988 opened this issue 4 years ago • 9 comments

Thank you very much for your library!

esp8266 12-f arduino ide version 1.8.13

Or how to use the file system to call the font? The font file can be saved in the file system, but I don't know how to call it

1 2

jie326513988 avatar Feb 12 '21 06:02 jie326513988

I have solved it myself, just copy U8G2's memory usage definition function for ESP8266

jie326513988 avatar Feb 12 '21 09:02 jie326513988

I have provided solution in the following pull request: https://github.com/olikraus/U8g2_for_Adafruit_GFX/pull/21

ppelikan avatar May 21 '21 10:05 ppelikan

I have provided solution in the following pull request: #21

Indeed, but you didn't answer my questions there. Can't we takeover the u8g2 code?

olikraus avatar May 24 '21 19:05 olikraus

I don't see any questions from you there. There are no comments at all. My fix has been tested and works ok, but if you prefer another solution, then you can close my pull request :)

ppelikan avatar May 24 '21 20:05 ppelikan

我自己解决了,直接复制U8G2的ESP8266的内存使用定义函数

是B站的甘草大佬吗。害。。。我都想换falsh了

jayxtt999 avatar Sep 04 '21 12:09 jayxtt999

我自己解决了,直接复制U8G2的ESP8266的内存使用定义函数

是B站的甘草大佬吗。害。。。我都想换falsh了

也可以直接用我改好的库哦

jie326513988 avatar Sep 04 '21 12:09 jie326513988

我自己解决了,直接复制U8G2的ESP8266的内存使用定义函数

是B站的甘草大佬吗。害。。。我都想换falsh了

也可以直接用我改好的库哦

大佬牛逼,躺了。

jayxtt999 avatar Sep 04 '21 13:09 jayxtt999

我自己解决了,直接复制U8G2的ESP8266的内存使用定义函数

需要添加的内容为 https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/GFXFont1.png https://gitee.com/Lichengjiez/weather-ink-screen/raw/master/%E5%9B%BE%E7%89%87/GFXFont2.png

jie326513988 avatar Dec 26 '21 04:12 jie326513988

It works! 牛了大兄弟。你给的gitee的图片链接打开是错的呢,我还是去gitee自己找的哈哈。

wei4118268 avatar Jan 03 '24 03:01 wei4118268