initial commit
This commit is contained in:
commit
6419eb16d6
4 changed files with 203 additions and 0 deletions
14
example/example.c
Normal file
14
example/example.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#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);
|
||||
sendData(&screen, JAPANESE_QUOTE_START);
|
||||
sendData(&screen, JAPANESE_QUOTE_END);
|
||||
resetPins(&screen);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue