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:
- 18:8e0c9e876245
- Parent:
- 7:87bde0a8d88d
--- a/main.cpp Fri Feb 12 13:15:07 2016 +0000 +++ b/main.cpp Fri Feb 12 13:56:11 2016 +0000 @@ -13,16 +13,16 @@ { s0.baud(9600); s0.format(8,SerialBase::None,1); -// s0.putc(65); + s0.putc(65); 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); -// wait(0.1); + 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); } } //Hola grupo \ No newline at end of file