1
Dependencies: mbed C12832_lcd MMA7660
Revision 2:ea7272ed30d2, committed 2021-04-22
- Comitter:
- andrewh2104
- Date:
- Thu Apr 22 16:46:31 2021 +0000
- Parent:
- 1:876f52a697c1
- Commit message:
- 1;
Changed in this revision
--- a/C12832_lcd.lib Sun Sep 22 17:44:42 2013 +0000 +++ b/C12832_lcd.lib Thu Apr 22 16:46:31 2021 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/dreschpe/code/C12832_lcd/#c9afe58d786a +http://mbed.org/users/dreschpe/code/C12832_lcd/#8f86576007d6
--- a/MMA7660.lib Sun Sep 22 17:44:42 2013 +0000 +++ b/MMA7660.lib Thu Apr 22 16:46:31 2021 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Sissors/code/MMA7660/#a8e20db7901e +http://mbed.org/users/Sissors/code/MMA7660/#36a163511e34
--- a/main.cpp Sun Sep 22 17:44:42 2013 +0000 +++ b/main.cpp Thu Apr 22 16:46:31 2021 +0000 @@ -8,6 +8,8 @@ MMA7660 MMA(p28, p27); //I2C Accelerometer DigitalOut connectionLed(LED1);//Accel OK LED +Serial pc(USBTX, USBRX); // TX, RX + int main() { int x=0,y=0; @@ -22,6 +24,15 @@ lcd.circle(63, 15, 8, 1); wait(.1); //time delay lcd.fillcircle(x+63, y+15, 3, 0); //erase bubble + if(x<0 && y<0) + { + x=-x; + y=-y; + } + + pc.printf("Tilt %f %f\r",MMA.x() ,MMA.y()); + + wait_ms(100); } }
--- a/mbed.bld Sun Sep 22 17:44:42 2013 +0000 +++ b/mbed.bld Thu Apr 22 16:46:31 2021 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file