Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
wiki:projets:monitoring:lcd [2018/06/12 13:22] lasmartresa créée |
wiki:projets:monitoring:lcd [2018/06/12 13:37] (Version actuelle) lasmartresa |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
=== LCD RGB Backlight === | === LCD RGB Backlight === | ||
- | {{ http://wiki.seeedstudio.com/ | + | {{ :wiki: |
- | [[http:// | + | [[http:// |
=== Premier test === | === Premier test === | ||
- | Une fois la bibliothèque télécharger des programmes de démonstrations sont disponibles. | + | Une fois la bibliothèque télécharger des programmes de démonstrations sont disponibles |
+ | |||
+ | <code c> | ||
+ | #include <Wire.h> | ||
+ | #include " | ||
+ | |||
+ | rgb_lcd lcd; | ||
+ | |||
+ | const int colorR = 255; | ||
+ | const int colorG = 0; | ||
+ | const int colorB = 0; | ||
+ | |||
+ | void setup() | ||
+ | { | ||
+ | // set up the LCD's number of columns and rows: | ||
+ | lcd.begin(16, | ||
+ | |||
+ | lcd.setRGB(colorR, | ||
+ | |||
+ | // Print a message to the LCD. | ||
+ | lcd.print(" | ||
+ | |||
+ | delay(1000); | ||
+ | } | ||
+ | |||
+ | void loop() | ||
+ | { | ||
+ | // set the cursor to column 0, line 1 | ||
+ | // (note: line 1 is the second row, since counting begins with 0): | ||
+ | lcd.setCursor(0, | ||
+ | // print the number of seconds since reset: | ||
+ | lcd.print(millis()/ | ||
+ | |||
+ | delay(100); | ||
+ | } | ||
+ | </ |