![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ok
Dependencies: MAX30003 max32630fthr DS1307
Diff: main.cpp
- Revision:
- 20:2e999e6568c1
- Parent:
- 19:7a084dc2f09d
- Child:
- 21:193a10530741
--- a/main.cpp Thu Jun 17 13:49:11 2021 +0000 +++ b/main.cpp Wed Jun 23 20:32:39 2021 +0000 @@ -95,14 +95,14 @@ uint16_t rtn_val; //time = 12:00:00 AM 12hr mode - ds3231_time_t time = {45,45,15,1, 0}; // seconds, min, hours, am_pm, mode + ds3231_time_t time = {50,10,16,1,0}; //seconds, min, hours, am_pm, mode rtn_val = rtc.set_time(time); //see datasheet for calendar format - ds3231_calendar_t calendar = {4, 16, 6, 21}; // day date month year + ds3231_calendar_t calendar = {4,23,6,21}; //day date month year rtn_val = rtc.set_calendar(calendar); @@ -160,7 +160,7 @@ uint8_t p_3 = 0; uint8_t p_4 = 0; // uint8_t channel_num= 1; - uint8_t channel_num[1]= {1}; + uint8_t channel_num[1]= {0}; uint8_t data_len_1 = 0; uint8_t data_len_2 = 0; uint32_t packet_1 = 0; @@ -258,7 +258,7 @@ S1=0; S2=0; S3=0; - // channel_num[1]= {2}; + channel_num[0]= {1}; } if (t==20) //C2 { @@ -266,7 +266,7 @@ S1=1; S2=0; S3=0; - // channel_num[1]= {3}; + channel_num[0]= {2}; } if (t==30) // C0 @@ -275,7 +275,7 @@ S1=0; S2=0; S3=0; - // channel_num[1]= {1}; + channel_num[0]= {0}; t=0;} @@ -283,7 +283,7 @@ } // Read back ECG samples from the FIFO - else if( (ecgFIFOIntFlag==1))// && (timerflag == 0)) + else if(ecgFIFOIntFlag==1)// && (timerflag == 0)) { ecgFIFOIntFlag = 0;