RaspberryLCD/example/example.c

15 lines
406 B
C
Raw Normal View History

2020-11-19 22:12:36 +00:00
#include "../raspberrylcd.h"
int main(void)
{
LCDScreen screen;
configurePins(&screen, 7, 9, 8, 0, 0, 0, 0, 21, 22, 23, 24);
initScreen(&screen, HALF_BYTE_INTERFACE, TWO_LINES, FONT_5x7, CURSOR_ON | CURSOR_BLINK, LEFT_TO_RIGHT);
2020-11-20 11:50:52 +00:00
sendText(&screen, "スウェーデン");
2020-11-20 12:37:20 +00:00
setCursor(&screen, 0, 1);
2020-11-20 11:50:52 +00:00
sendText(&screen, "オーストラリア");
2020-11-19 22:12:36 +00:00
resetPins(&screen);
return 0;
}