g

Dependencies:   C12832 MMA7660 mbed

Committer:
hugo947
Date:
Wed Dec 07 16:01:18 2022 +0000
Revision:
0:fb854da51390
ddd

Who changed what in which revision?

UserRevisionLine numberNew 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 }