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.
Dependents: 00_yotsuba 10_motor-test 00_yotsuba 200_yotsuba_21
Revision 1:ab257f9b56d2, committed 2020-12-12
- Comitter:
- piroro4560
- Date:
- Sat Dec 12 05:06:17 2020 +0000
- Parent:
- 0:f86833c58a5f
- Child:
- 2:d2dce9901580
- Commit message:
- mbed-os 6
Changed in this revision
| aqm0802.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/aqm0802.cpp Tue Jan 28 08:03:22 2020 +0000
+++ b/aqm0802.cpp Sat Dec 12 05:06:17 2020 +0000
@@ -3,18 +3,18 @@
aqm0802::aqm0802(PinName sda, PinName scl)
: i2c_(sda, scl)
{
- wait_ms(40);
+ thread_sleep_for(40);
// LCD initialize
cmd(0x39); // function set
cmd(0x14); // interval osc
cmd(0x70); // contrast Low
cmd(0x56); // contast High/icon/power
cmd(0x6C); // follower control
- wait_ms(200);
+ thread_sleep_for(200);
cmd(0x38); // function set
cmd(0x0C); // Display On
cmd(0x01); // Clear Display
- wait_ms(200);
+ thread_sleep_for(200);
}
void aqm0802::cmd(char x)