ハンブルソフト サポート掲示板

有限会社ハンブルソフトの製品関連の疑問に答える掲示板です。
  新規投稿 ┃ツリー表示 ┃スレッド表示 ┃一覧表示 ┃トピック表示 ┃番号順表示 ┃検索 ┃設定 ┃ホーム  

234 / 297     ←次へ | 前へ→

Re:romfontx_example更新しました  nopnop2002 E-MAIL  - 17/3/4(土) 10:30 -

▼nariさん:
>fsfontx_exampleの方も更新しようとしたのですが、
>spiffsへの書き込みが、個体によっては、うまくいかず、
>ネットで検索しても、環境、versionの違い等で
>いろいろありそうなので、まだ行えておりません。

fsfontx_exampleも以下のコードで正常動作しました。

#include <FS.h>
#include <Fontx.h>
#include <FsFontx.h>

FsFontx fx("/ILGH16XB.FNT","/ILGZ16XB.FNT");

void setup()
{
const uint8_t *p;
uint8_t w,h;
uint16_t str[] = {u'漢',u'字',u'T',u'E',u'S',u'T'};

Serial.begin(9600);
delay(100);
Serial.println("\nReset:");

if(!SPIFFS.begin())
Serial.println("SPIFFS failed.");
else {
Dir dir = SPIFFS.openDir("/");
int cnt = 0;
while(dir.next()){
File f = dir.openFile("r");
Serial.printf("[%d] %-12s %12u\n",++cnt,f.name(), f.size());
f.close();
}
Serial.printf("%d files found.\n",cnt);
} // end if

for(int i=0;i<sizeof(str)/sizeof(str[0]);i++){
if(!fx.getGlyph(str[i], &p, &w, &h)){
Serial.printf("getGlyph failed. code:%x\n",str[i]);
} else {
for(int y=0; y<h; y++){
Serial.printf("%02d: ",y);
for(int x=0; x<w; x++){
Serial.print(p[x/8] & (0x80 >> (x % 8)) ? '*' : '.');
} // end x
Serial.println();
p += (w + 7)/8;
} // end y
} // endif
} // end i
}

void loop()
{
}


引用なし

パスワード



・ツリー全体表示

Fontxについて教えてください nopnop2002 17/3/1(水) 23:39
conf.hが無いというエラー nari 17/3/1(水) 23:57
Re:conf.hが無いというエラー nopnop2002 17/3/2(木) 14:29
ota用の情報その他が入っています。 nari 17/3/2(木) 15:54
Re:ota用の情報その他が入っています。 nopnop2002 17/3/2(木) 20:37
romfontx_example更新しました nari 17/3/3(金) 9:50
Re:romfontx_example更新しました nopnop2002 17/3/3(金) 20:00
Re:romfontx_example更新しました nopnop2002 17/3/4(土) 10:30
Fontxについて気が付いた点 nopnop2002 17/3/11(土) 9:52
Fontx更新しました nari 17/3/11(土) 18:38
Re:Fontx更新しました nopnop2002 17/3/11(土) 21:50

234 / 297     ←次へ | 前へ→
  新規投稿 ┃ツリー表示 ┃スレッド表示 ┃一覧表示 ┃トピック表示 ┃番号順表示 ┃検索 ┃設定 ┃ホーム  

 6559
ページ:  ┃  記事番号:  

C-BOARD Moyuku v1.03b3