michalpekala
3/20/2013 - 12:10 AM

Raspberry Pi + LCD

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;
}