k

Dependencies:   m3pi mbed

Fork of m3pi_HelloWorld by Chris Styles

Committer:
pietor
Date:
Wed Apr 19 09:51:15 2017 +0000
Revision:
8:a6afbbc052e2
Parent:
7:d0689e8f23bf
k

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chris 0:93bba564574a 1 #include "mbed.h"
chris 0:93bba564574a 2 #include "m3pi.h"
pietor 8:a6afbbc052e2 3 #include "Controller.h"
pietor 8:a6afbbc052e2 4 #include "Receiver.h"
pietor 8:a6afbbc052e2 5 Controller ctrl;
pietor 8:a6afbbc052e2 6 Receiver recv;
chris 0:93bba564574a 7
chris 0:93bba564574a 8 int main() {
pietor 8:a6afbbc052e2 9 while(true){
pietor 8:a6afbbc052e2 10 char test[4] = {1,0,0,1};
pietor 8:a6afbbc052e2 11 float test2 = recv.convertBitsToFloat(test);
pietor 8:a6afbbc052e2 12 printf("%.2f, test", test2);
pietor 8:a6afbbc052e2 13 wait_ms(1000);
pietor 8:a6afbbc052e2 14 }
chris 0:93bba564574a 15 }