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.
Diff: main.cpp
- Revision:
- 1:4c1866744ada
- Parent:
- 0:59af9b7d1788
- Child:
- 2:013067ba5d9f
- Child:
- 4:c6f96098e80b
--- a/main.cpp Wed Feb 10 18:22:18 2016 +0000 +++ b/main.cpp Wed Feb 10 18:24:00 2016 +0000 @@ -17,10 +17,10 @@ while(1) { acc.getAccAllAxis(data); - s0.printf("%d,\t%d,\t%d\n", data[0], data[1], data[2]); - rled = 1.0- abs(data[0]/8000.0); - gled = 1.0- abs(data[1]/8000.0); - bled = 1.0- abs(data[2]/8000.0); + s0.printf("%d,\t%d,\t%d\n", data[0], data[1], data[2]);// +// rled = 1.0- abs(data[0]/8000.0); +// gled = 1.0- abs(data[1]/8000.0); +// bled = 1.0- abs(data[2]/8000.0); // wait(0.1); } }