Skip to content

Instantly share code, notes, and snippets.

@MichalPekala
Created March 20, 2013 00:10
Show Gist options
  • Save MichalPekala/5201306 to your computer and use it in GitHub Desktop.
Save MichalPekala/5201306 to your computer and use it in GitHub Desktop.
Raspberry Pi + LCD
#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