test
Dependencies: C12832 MMA7660 mbed
main.cpp@1:a7f88b36247c, 22 months ago (annotated)
- Committer:
- youneskb
- Date:
- Wed Dec 07 16:07:12 2022 +0000
- Revision:
- 1:a7f88b36247c
- Parent:
- 0:fb854da51390
tkt
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hugo947 | 0:fb854da51390 | 1 | #include "mbed.h" |
hugo947 | 0:fb854da51390 | 2 | #include "C12832.h" |
hugo947 | 0:fb854da51390 | 3 | |
hugo947 | 0:fb854da51390 | 4 | DigitalOut myled(LED1); |
hugo947 | 0:fb854da51390 | 5 | |
hugo947 | 0:fb854da51390 | 6 | Serial device(p9, p10); |
hugo947 | 0:fb854da51390 | 7 | C12832 lcd(p5, p7, p6, p8, p11); |
hugo947 | 0:fb854da51390 | 8 | |
hugo947 | 0:fb854da51390 | 9 | int main() { |
hugo947 | 0:fb854da51390 | 10 | lcd.printf("l"); |
hugo947 | 0:fb854da51390 | 11 | lcd.locate(1,0); |
hugo947 | 0:fb854da51390 | 12 | lcd.printf("l"); |
hugo947 | 0:fb854da51390 | 13 | while(1) { |
hugo947 | 0:fb854da51390 | 14 | myled = 1; |
hugo947 | 0:fb854da51390 | 15 | wait(0.2); |
hugo947 | 0:fb854da51390 | 16 | myled = 0; |
hugo947 | 0:fb854da51390 | 17 | wait(0.2); |
hugo947 | 0:fb854da51390 | 18 | } |
hugo947 | 0:fb854da51390 | 19 | } |
youneskb | 1:a7f88b36247c | 20 | |
youneskb | 1:a7f88b36247c | 21 | /*test test */ |