Ecrit "Bonjour" sur LCD
Dependencies: mbed
Revision 0:c87b1ec5a183, committed 2019-05-27
- Comitter:
- RobotManYt
- Date:
- Mon May 27 23:45:59 2019 +0000
- Commit message:
- Test pour l'ecran NHD
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon May 27 23:45:59 2019 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+#define LCD 50
+
+I2C i2c(I2C_SDA, I2C_SCL);
+
+int main() {
+ char clr[2] = {0xFE, 0x51};
+ char data[7] = {'B', 'o', 'n', 'j', 'o', 'u', 'r'};
+ i2c.write(LCD, clr, 2);
+ i2c.write(LCD, data, 7);
+}
+
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon May 27 23:45:59 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file