ArduinO
moins de 3 €
âblag 4 fils
ressemble à :
http://yourduino.com/sunshop2/index.php?l=product_detail&p=170
lu librairie:
https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
essayé:
https://github.com/digistump/DigisparkArduinoIntegration/blob/master/libraries/DigisparkLCD
pas mieux avec example de
https://github.com/digistump/DigisparkArduinoIntegration/blob/master/libraries/DigisparkLCD/examples/BasicUsage/BasicUsage.ino
autreessai:
C:\Users\adminpo\Desktop\ARDUINO\arduino-1.6.7\examples\po\
LiquidCrystal?\examples\HelloWorld_i2c
à partirde:
https://arduino-info.wikispaces.com/LCD-Blue-I2C
se compile sans erreur mais n'affiche pas!
apres i2cv scan ci dessus: c'est 39 ou x27 et pas x38!
passe au noir quand démarre
code
#include <Wire.h> // Include Wire.h to control I2C
#include "LiquidCrystal_I2C.h" //Download & include the code library can be downloaded below
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE); // Initialize LCD Display at address 0x27
void setup()
{
lcd.begin (16,2); // or 20,4
}
void loop()
{
lcd.setBacklight(HIGH); //Set Back light turn On
lcd.setCursor(0,0); // Move cursor to 0
lcd.print("We are 14Core");
lcd.setCursor(0,1);
lcd.print("Ideas Comes Reality");
delay(1000);
lcd.setBacklight(LOW); // Set backlight to off
delay(100);
}