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:0286d548948b
- Parent:
- 0:045a3e5d8f7d
diff -r 045a3e5d8f7d -r 0286d548948b main.cpp
--- a/main.cpp Thu Aug 26 23:58:04 2010 +0000
+++ b/main.cpp Sat Aug 28 02:44:40 2010 +0000
@@ -10,7 +10,7 @@
int main() {
while (1) {
for (float i=0.0; i<1.0; i+=0.1) {
- aout = 1 - sin(i*2*3.14159265);
+ aout = (1 + sin(i*2*3.14159265))/2;
LED_BarGraph(1.0, ain);
wait(0.1);
}