test 4D7S + HC-SR04 + NUCLEO-F103RB
Dependencies: ArduinoFB SRF05 mbed
Revision 1:0f0f31f25bbd, committed 2015-02-12
- Comitter:
- fblanc
- Date:
- Thu Feb 12 12:42:42 2015 +0000
- Parent:
- 0:fac6c6a73e5f
- Commit message:
- TEST 4D7S+ HC-SR04+ STM32F103RB ok
Changed in this revision
ArduinoFB.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fac6c6a73e5f -r 0f0f31f25bbd ArduinoFB.lib --- a/ArduinoFB.lib Thu Feb 12 10:26:36 2015 +0000 +++ b/ArduinoFB.lib Thu Feb 12 12:42:42 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/rbohne/code/ArduinoHAL/#52ed7aa62e95 +http://developer.mbed.org/users/fblanc/code/ArduinoFB/#52ed7aa62e95
diff -r fac6c6a73e5f -r 0f0f31f25bbd main.cpp --- a/main.cpp Thu Feb 12 10:26:36 2015 +0000 +++ b/main.cpp Thu Feb 12 12:42:42 2015 +0000 @@ -55,13 +55,7 @@ float val; val=srf*100; - /* - unsigned char t=((val%1000)/100); - - disbuff[0]= (unsigned char)(val/1000); - disbuff[1]= (unsigned char)((val%1000)/100); - disbuff[2]= (unsigned char)((val%100)/10); - */ + disbuff[0]= (unsigned char)(val/1000); disbuff[1]= (val/100)-disbuff[0]*10; disbuff[2]= (val/10)-(disbuff[0]*100+disbuff[1]*10);