![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
a_team_fep_rx_from_kinect_sample
Diff: main.cpp
- Revision:
- 0:338b7241e445
diff -r 000000000000 -r 338b7241e445 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 04 10:54:05 2018 +0000 @@ -0,0 +1,13 @@ +#include"fep_kinect.h" +#include"mbed.h" +fep_kinect fep(PC_12,PD_2,151,115200); +Serial pc(USBTX,USBRX,115200); +int main() +{ + while(true) { + fep.newdata(); + int distance = fep.get_distance(); + int mode = fep.get_mode(); + pc.printf("%d,%d\n\r",distance,mode); + } +} \ No newline at end of file