mOskit
January 25, 2015, 6:00pm
1
Hi
Can any one show me how the syntax should looks like??
void upFL()
{
digitalWrite(FLSolUp, HIGH);
u8g.setCursorPos(50, 10);
u8g.setCursorFont(const u8g_font_cursor 0x93);
}
With this i get error
error: expected primary-expression before 'const'
mOskit
January 25, 2015, 7:15pm
2
Hi.
Trying to print symbol from the x11 font group but for somereason i get mixed pixels instead of symbol.
Any suggestions??
u8g.setFont(u8g_font_7x13_67_75);
u8g.drawStr(40,40, "0x93");
Look at the examples that come with this library. You have to set up the page before your can do anything with it.
The function's signature is:
void setCursorFont(const u8g_pgm_uint8_t *cursor_font)
which tells me it wants a pointer to the font, not a constant. You may want a pointer to one of the font tables (u8g_font_data.c)....I can't tell from three lines of code.
system
January 25, 2015, 9:05pm
6
Why do you want to print the string "0x93" on your LCD?
system
January 25, 2015, 9:17pm
7
Did you mean u8g.drawStr(40,40, "\x93");?
mOskit
January 25, 2015, 9:26pm
8
Yes awol. Thats exactly what i have tried to do.
Paul, i just want to print arrow when inflating.