Diesmal möchte ich euch eine Übersicht geben, was es für Schriftarten für das OLED Display gibt. Ich benutze hier das 0.96 Zoll Display mit weißer Schrift, dazu nehme ich die U8g2 Bibliothek, wie diese einzubinden geht könnt Ihr hier nochmal nachlesen.

Ich habe für diese Aufnahmen immer die selbe Einstellung am Arduino Uno benutzt. Das heißt der Zeilenabstand und so weiter war immer der selbe. Vielleicht hilft euch diese Übersicht um die passende Schriftart zu finden.

Der Programmcode:

Das ist ein Beispielcode, in der Zeile
u8g2.setFont(u8g2_font_xxx);
anstelle der xxx hier kommt dann die Schriftart rein die Ihr in der Tabelle unten sehen könnt.

#include <Arduino.h>
#include <U8g2lib.h>

#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);

void setup(void) {
  u8g2.begin();
}

void loop(void) {
  u8g2.setFont(u8g2_font_courB10_tf);
  u8g2.firstPage();
  do {
    u8g2.setCursor(0, 20);
    u8g2.print(F("arduino-"));
    u8g2.setCursor(0, 40);
    u8g2.print(F("projekte"));
    u8g2.setCursor(0, 60);
    u8g2.print(F(".info"));
  } while ( u8g2.nextPage() );
  delay(1000);
}

Schriftarten

 

Typ
5x7_tf u8g2 5x7_tf
6x10_tf u8g2 6x10_tf
6x13_tf u8g2 6x13_tf
6x13B_tf u8g2 6x13B_tf
7x13_tf u8g2 7x13_tf
7x13B_tf u8g2 7x13B_tf
7x14_tf u8g2 7x14_tf
7x14B_tf u8g2 7x14B_tf
8x13_tf u8g2 8x13_tf
8x13B_tf u8g2 8x13B_tf
9x15_tf u8g2 9x15_tf
9x15B_tf u8g2 9x15B_tf
10x20_tf u8g2 10x20_tf
amstrad_cpc_extended_8f amstrad_cpc_extended_8f
artossans8_8r artossans8_8r
baby_tf baby_tf
blipfest_07_tr blipfest_07_tr
chikita_tf chikita_tf
chroma48medium8_8r chroma48medium8_8r
courB08_tf courB08_tf
courB10_tf courB10_tf
courB12_tf courB12_tf
courB14_tf courB14_tf
courB18_tf courB18_tf
courB24_tf courB24_tf
courR08_tf courR08_tf
courR10_tf courR10_tf
courR12_tf courR12_tf
courR14_tf courR14_tf
courR18_tf courR18_tf
courR24_tf courR24_tf
crox1c_tf crox1c_tf
crox1cb_tf crox1cb_tf
crox1h_tf crox1h_tf
crox1hb_tf crox1hb_tf
crox1t_tf crox1t_tf
crox1tb_tf crox1tb_tf
crox2c_tf crox2c_tf
crox2cb_tf crox2cb_tf
crox2h_tf crox2h_tf
crox2hb_tf crox2hb_tf
crox2t_tf crox2t_tf
crox2tb_tf crox2tb_tf
crox3c_tf crox3c_tf
crox3cb_tf crox3cb_tf
crox3h_tf crox3h_tf
crox3hb_tf crox3hb_tf
crox3t_tf crox3t_tf
crox3tb_tf crox3tb_tf
crox4h_tf crox4h_tf
crox4hb_tf crox4hb_tf
crox4t_tf crox4t_tf
crox4tb_tf crox4tb_tf
crox5h_tf crox5h_tf
crox5hb_tf crox5hb_tf
crox5t_tf crox5t_tf
crox5tb_tf crox5tb_tf
cu12_tf cu12_tf
etl14thai_t etl14thai_t
etl24thai_t etl24thai_t
fub11_tf fub11_tf
fub14_tf fub14_tf
fub17_tf fub17_tf
fub20_tf fub20_tf
fub25_tf fub25_tf
fub30_tf fub30_tf
fub35_tf fub35_tf
fub42_tf fub42_tf
fur11_tf fur11_tf
fur14_tf fur14_tf
fur17_tf fur17_tf
fur20_tf fur20_tf
fur25_tf fur25_tf
fur30_tf fur30_tf
fur35_tf fur35_tf
fur42_tf fur42_tf
gb16st_t_1 gb16st_t_1
gb24st_t_1 gb24st_t_1
helvB08_tf helvB08_tf
helvB10_tf helvB10_tf
helvB12_tf helvB12_tf
helvB14_tf helvB14_tf
helvB18_tf helvB18_tf
helvB24_tf helvB24_tf
helvR08_tf helvR08_tf
helvR10_tf helvR10_tf
helvR12_tf helvR12_tf
helvR14_tf helvR14_tf
helvR18_tf helvR18_tf
helvR24_tf helvR24_tf
inb16_mf inb16_mf
inb19_mf inb19_mf
inb21_mf inb21_mf
inb24_mf inb24_mf
inb27_mf inb27_mf
inb30_mf inb30_mf
inr33_mf inr33_mf
inr38_mf inr38_mf
inb42_mf inb42_mf
inb46_mf inb46_mf
inb49_mf inb49_mf
inb53_mf inb53_mf
inr16_mf inr16_mf
inr19_mf inr19_mf
inr21_mf inr21_mf
inr24_mf inr24_mf
inr27_mf inr27_mf
inr30_mf inr30_mf
inr33_mf inr33_mf
inr38_mf inr38_mf
inr42_mf inr42_mf
inr46_mf inr46_mf
inr49_mf inr49_mf
inr53_mf inr53_mf
logisoso16_tf logisoso16_tf
logisoso18_tf logisoso18_tf
logisoso20_tf logisoso20_tf
logisoso22_tf logisoso22_tf
logisoso24_tf logisoso24_tf
logisoso26_tf logisoso26_tf
logisoso28_tf logisoso28_tf
logisoso30_tf logisoso30_tf
logisoso32_tf logisoso32_tf
logisoso34_tf logisoso34_tf
logisoso38_tf logisoso38_tf
logisoso42_tf logisoso42_tf
logisoso46_tf logisoso46_tf
logisoso50_tf logisoso50_tf
logisoso54_tf logisoso54_tf
logisoso58_tf logisoso58_tf
lucasfont_alternate_tf lucasfont_alternate_tf
micro_tr micro_tr
ncenB08_tf ncenB08_tf
ncenB10_tf ncenB10_tf
ncenB12_tf ncenB12_tf
ncenB14_tf ncenB14_tf
ncenB18_tf ncenB18_tf
ncenB24_tf ncenB24_tf
ncenR08_tf ncenR08_tf
ncenR10_tf ncenR10_tf
ncenR12_tf ncenR12_tf
ncenR14_tf ncenR14_tf
ncenR18_tf ncenR18_tf
osb18_tf osb18_tf
osb21_tf osb21_tf
osb26_tf osb26_tf
osb29_tf osb29_tf
osb35_tf osb35_tf
osb41_tf osb41_tf
osr18_tf osr18_tf
osr21_tf osr21_tf
osr26_tf osr26_tf
osr29_tf osr29_tf
osr35_tf osr35_tf
osr41_tf osr41_tf
p01type_tf p01type_tf
pcsenior_8f pcsenior_8f
pixelle_micro_tr pixelle_micro_tr
pressstart2p_8f pressstart2p_8f
profont11_tf profont11_tf
profont12_tf profont12_tf
profont15_tf profont15_tf
profont17_tf profont17_tf
profont22_tf profont22_tf
profont29_tf profont29_tf
px437wyse700a_tf px437wyse700a_tf
px437wyse700b_tf px437wyse700b_tf
pxplusibmcga_8f pxplusibmcga_8f
pxplusibmcgathin_8f pxplusibmcgathin_8f
pxplusibmvga8_tf pxplusibmvga8_tf
pxplusibmvga9_tf pxplusibmvga9_tf
pxplustandynewtv_8f pxplustandynewtv_8f
robot_de_niro_tf robot_de_niro_tf
timB08_tf timB08_tf
timB10_tf timB10_tf
timB12_tf timB12_tf
timB14_tf timB14_tf
timB18_tf timB18_tf
timB24_tf timB24_tf
timR08_tf timR08_tf
timR10_tf timR10_tf
timR12_tf timR12_tf
timR14_tf timR14_tf
timR18_tf timR18_tf
timR24_tf timR24_tf
torussansbold8_8r torussansbold8_8r
trixel_square_tf trixel_square_tf
unifont_t_latin unifont_t_latin
victoriamedium8_8r victoriamedium8_8r

 

Folgende Bauteile wurde verwendet:


1x Arduino Uno https://arduino-projekte.info/produkt/arduino-uno-r3-clone/
1x OLED 1.3 Zoll Display https://arduino-projekte.info/produkt/13-oled-display-128×64-i2c-sh1106/