Programme de test de l'afficheur LCD Grove 16x2 Black on Yellow sur bus I2C

Dependencies:   mbed

Revision:
1:1342700e4846
diff -r 3dabc22261b1 -r 1342700e4846 LCD.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LCD.h	Tue Dec 08 15:46:51 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+#define LCD_ADDRESS   (0x3E << 1)
+
+class LCD
+{
+public:
+    LCD(PinName sda, PinName scl);// constructor
+    void clear();
+    void print(char *str);
+    void cursor(char col, char row);
+private:
+    char data[2];
+    void init();
+    void sendCommand(char value);
+    I2C i2c;
+};