Microcontrôleurs / Mbed 2 deprecated test_NHD

Dependencies:   mbed

Committer:
RobotManYt
Date:
Mon May 27 23:45:59 2019 +0000
Revision:
0:c87b1ec5a183
Test pour l'ecran NHD

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RobotManYt 0:c87b1ec5a183 1 #include "mbed.h"
RobotManYt 0:c87b1ec5a183 2
RobotManYt 0:c87b1ec5a183 3 #define LCD 50
RobotManYt 0:c87b1ec5a183 4
RobotManYt 0:c87b1ec5a183 5 I2C i2c(I2C_SDA, I2C_SCL);
RobotManYt 0:c87b1ec5a183 6
RobotManYt 0:c87b1ec5a183 7 int main() {
RobotManYt 0:c87b1ec5a183 8 char clr[2] = {0xFE, 0x51};
RobotManYt 0:c87b1ec5a183 9 char data[7] = {'B', 'o', 'n', 'j', 'o', 'u', 'r'};
RobotManYt 0:c87b1ec5a183 10 i2c.write(LCD, clr, 2);
RobotManYt 0:c87b1ec5a183 11 i2c.write(LCD, data, 7);
RobotManYt 0:c87b1ec5a183 12 }
RobotManYt 0:c87b1ec5a183 13