library for aqm0802
Dependents: 00_yotsuba 10_motor-test 00_yotsuba 200_yotsuba_21
Diff: aqm0802.cpp
- Revision:
- 1:ab257f9b56d2
- Parent:
- 0:f86833c58a5f
--- 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)