Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Grove_LCD_RGB_Backlight mbed
Fork of Grove_LCD_RGB_Backlight_HelloWorld by
Diff: main.cpp
- Revision:
- 1:d16e423537ed
- Parent:
- 0:be3b212d1b17
- Child:
- 2:2e943aeaf82b
diff -r be3b212d1b17 -r d16e423537ed main.cpp
--- a/main.cpp Tue Mar 15 17:21:58 2016 +0000
+++ b/main.cpp Fri Apr 22 09:14:31 2016 +0000
@@ -1,19 +1,22 @@
#include "Grove_LCD_RGB_Backlight.h"
#include "mbed.h"
+
Grove_LCD_RGB_Backlight rgbLCD(p9, p10);
//I2C i2c(p9, p10);
//Serial pc(USBTX, USBRX);
int main()
{
-
+ rgbLCD.displayOn();
rgbLCD.setRGB(0xff, 0xff, 0xff); //set the color
rgbLCD.print("Hello World!");
rgbLCD.locate(0,1);
rgbLCD.print("This is a test");
wait(5);
int count = 0;
+
+ // Changement de couleur de fond d'écran
while(1)
{
if (count == 0)
