Created
March 20, 2013 00:10
-
-
Save MichalPekala/5201306 to your computer and use it in GitHub Desktop.
Raspberry Pi + LCD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <time.h> | |
#include <wiringPi.h> | |
#include <lcd.h> | |
int main (void) { | |
wiringPiSetup(); | |
int display; | |
display = lcdInit(2,16,4,11,10,0,1,2,3,0,0,0,0); | |
sleep(1); | |
lcdPosition(display,0,0); | |
lcdPuts(display, "hello world!"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment