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@1:b2c40f461dbd, 2022-04-25 (annotated)
- Committer:
- fernando_moraless
- Date:
- Mon Apr 25 02:20:54 2022 +0000
- Revision:
- 1:b2c40f461dbd
- Parent:
- 0:824096cc05af
- Child:
- 2:b2512ade96de
Biblioteca prometida
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Yar | 0:824096cc05af | 1 | #include "mbed.h" |
| Yar | 0:824096cc05af | 2 | #include <LiquidCrystal_I2C.h> |
| Yar | 0:824096cc05af | 3 | |
| Yar | 0:824096cc05af | 4 | // Set the LCD address to 0x27 for a 16 chars and 2 line display |
| Yar | 0:824096cc05af | 5 | LiquidCrystal_I2C lcd(0x4E, 16, 2); |
| Yar | 0:824096cc05af | 6 | |
| Yar | 0:824096cc05af | 7 | |
| Yar | 0:824096cc05af | 8 | |
| Yar | 0:824096cc05af | 9 | int main() |
| Yar | 0:824096cc05af | 10 | { |
| Yar | 0:824096cc05af | 11 | |
| Yar | 0:824096cc05af | 12 | // initialize the LCD |
| Yar | 0:824096cc05af | 13 | lcd.begin(); |
| Yar | 0:824096cc05af | 14 | |
| Yar | 0:824096cc05af | 15 | // Turn on the blacklight and print a message. |
| Yar | 0:824096cc05af | 16 | lcd.backlight(); |
| Yar | 0:824096cc05af | 17 | lcd.print("Hello, world!"); |
| Yar | 0:824096cc05af | 18 | |
| fernando_moraless | 1:b2c40f461dbd | 19 | while (1) |
| fernando_moraless | 1:b2c40f461dbd | 20 | { |
| fernando_moraless | 1:b2c40f461dbd | 21 | |
| Yar | 0:824096cc05af | 22 | } |
| Yar | 0:824096cc05af | 23 | |
| Yar | 0:824096cc05af | 24 | } |
| Yar | 0:824096cc05af | 25 |