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.
main.cpp@0:919786300d6c, 2016-05-27 (annotated)
- Committer:
- ryood
- Date:
- Fri May 27 07:56:48 2016 +0000
- Revision:
- 0:919786300d6c
- Child:
- 1:8512a97a56bc
ST7565 gLCD(D4, D3, D2, D7, D6);???????
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ryood | 0:919786300d6c | 1 | #include "mbed.h" |
| ryood | 0:919786300d6c | 2 | #include "st7565LCD.h" |
| ryood | 0:919786300d6c | 3 | |
| ryood | 0:919786300d6c | 4 | DigitalOut led1(LED1); |
| ryood | 0:919786300d6c | 5 | |
| ryood | 0:919786300d6c | 6 | int main() |
| ryood | 0:919786300d6c | 7 | { |
| ryood | 0:919786300d6c | 8 | //ST7565(PinName mosi, PinName sclk, PinName cs, PinName rst, PinName a0); |
| ryood | 0:919786300d6c | 9 | ST7565 gLCD(D4, D3, D2, D7, D6); |
| ryood | 0:919786300d6c | 10 | gLCD.begin(0x10); |
| ryood | 0:919786300d6c | 11 | |
| ryood | 0:919786300d6c | 12 | while (true) { |
| ryood | 0:919786300d6c | 13 | led1 = !led1; |
| ryood | 0:919786300d6c | 14 | gLCD.drawstring(0, 0, "Hello World."); |
| ryood | 0:919786300d6c | 15 | gLCD.display(); |
| ryood | 0:919786300d6c | 16 | wait(0.1); |
| ryood | 0:919786300d6c | 17 | } |
| ryood | 0:919786300d6c | 18 | } |