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.
Dependencies: HIDScope MODSERIAL- mbed-dsp mbed
Diff: Project_main.cpp
- Revision:
- 35:c3182df00ec8
- Parent:
- 34:e166187e62ce
- Child:
- 36:af949aaaba01
--- a/Project_main.cpp Tue Oct 07 12:34:32 2014 +0000
+++ b/Project_main.cpp Tue Oct 07 13:01:09 2014 +0000
@@ -16,8 +16,8 @@
PwmOut green(LED_GREEN);
PwmOut blue(LED_BLUE);
-int8_t direction = 0;
-int8_t force = 0;
+int direction = 0;
+int force = 0;
Ticker log_timer;
Ticker reset_timer;
@@ -59,7 +59,7 @@
pc.printf("reset ");
}
}
-CONSTANTE RESETS DOOR BEWEGINGSARTEFACTEN*/
+CONSTANTE RESETS DOOR BEWEGINGSARTEFACTEN */
int main()
{
@@ -132,8 +132,8 @@
}
while(1) { //Loop keuze FORCE
forcechoice:
- for(int i=1; i<4; i++) {
- if(i==1) { //red
+ for(int j=1; j<4; j++) {
+ if(j==1) { //red
red=0;
green=1;
blue=1;
@@ -154,7 +154,7 @@
}
}
}
- if(i==2) { //green
+ if(j==2) { //green
red =1;
green=0;
blue=1;
@@ -175,7 +175,7 @@
}
}
}
- if(i==3) { //blue
+ if(j==3) { //blue
red=1;
green=1;
blue=0;