Microcontrôleurs / Mbed 2 deprecated test_NHD

Dependencies:   mbed

Revision:
0:c87b1ec5a183
--- /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