1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-05-20 21:56:23 +02:00
cdf2018-principal/chef/src/testLCD.c
2018-05-09 00:59:09 +02:00

31 lines
508 B
C

/* Teste si une broche est connecté à une autre */
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <wiringPi.h>
#include <wiringPiI2C.h>
#include "i2c.h"
#include "lcd.h"
int main(int argc, char* argv[])
{
(void)argc;
(void)argv;
wiringPiSetup();
initI2C();
initLCD();
for (;;) {
printToLCD(LCD_LINE_1, "Buongiorno");
printToLCD(LCD_LINE_2, "Come stai?");
sleep(1);
resetLCD();
sleep(1);
}
}