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: mbed
main.cpp@0:c87b1ec5a183, 2019-05-27 (annotated)
- 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?
| User | Revision | Line number | New 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 |