code for sterring wheel interface

Dependencies:   MBC002-DigitalIn

Revision:
5:6dc69540b634
Parent:
4:faec61d0b6c0
Child:
6:69152576b147
--- a/main.cpp	Wed Jun 27 12:44:01 2018 +0000
+++ b/main.cpp	Wed Jun 27 12:59:24 2018 +0000
@@ -41,9 +41,9 @@
 // IF any button is pressed the outputs level is 0
 int ARRAY_SEND[8];
 int i;
-       if(pushButton1 == 1)  {for (i=0;i<8;i++){ARRAY_SEND[i]=ARRAY_SOURCE[i]};}
-  else if(pushButton2 == 1)  {for (i=0;i<8;i++){ARRAY_SEND[i]=ARRAY_TEL[i]};}
-        else {
+ if(pushButton1 == 1)  { for (i=0;i<8;i++) {ARRAY_SEND[i]=ARRAY_SOURCE[i];} }
+  else if(pushButton2 == 1)  { for (i=0;i<8;i++) {ARRAY_SEND[i]=ARRAY_TEL[i];} } 
+          else {
             
             // LEDs Turn-Off
             led = 0;
@@ -65,4 +65,4 @@
              myled =0;
               led =0;
              wait (ARRAY_SEND[BIT]);}
- }}
\ No newline at end of file
+ }}}
\ No newline at end of file