Lab5-02_uplink_downlink_lite

Dependencies:   mbed HEPTA_CDH_lite HEPTA_COM_lite HEPTA_SENSOR_lite HEPTA_EPS_lite

Revision:
3:1392e060f3a2
Parent:
2:7a7448b44db4
--- a/main.cpp	Fri Aug 20 13:43:06 2021 +0000
+++ b/main.cpp	Tue Aug 24 02:52:11 2021 +0000
@@ -13,6 +13,8 @@
     sat.printf("Xbee Uplink Downlink Mode\r\n");
     int rcmd=0,cmdflag=0;
     float ax,ay,az;
+    eps.turn_on_regulator();//turn on 3.3V conveter
+    sensor.setup();
     for(int i=0;i<10;i++){
         com.xbee_receive(&rcmd,&cmdflag);
         com.printf("num=%d\r\n",i);