33
Dependencies: DISCO_L475VG_IOT01A_wifi
Diff: DataCheck.cpp
- Revision:
- 3:32b328935a54
- Parent:
- 2:a460007a35c7
--- a/DataCheck.cpp Wed Aug 21 07:25:27 2019 +0000 +++ b/DataCheck.cpp Wed Aug 21 08:45:28 2019 +0000 @@ -39,22 +39,22 @@ if(S[1]=='0') { - motor1CCW(100); + motor1CCW(10); } else if(S[1]=='1') { - motor1CW(100); + motor1CW(10); } else motor1Stop(); if(S[2]=='0') { - motor2CCW(100); + motor2CCW(10); } else if(S[2]=='1') { - motor2CW(100); + motor2CW(10); } else motor2Stop(); if(S[5]=='0') @@ -80,6 +80,7 @@ G = ((S[j]-48)*100 )+((S[j+1]-48)*10 )+((S[j+2]-48)*1 );j=j+3; B = ((S[j]-48)*100 )+((S[j+1]-48)*10 )+((S[j+2]-48)*1 ); setRGB(R,G,B,2); + printf("R=%f G=%f B=%f\n",R,G,B); } Dustcheck();