![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
final
Dependencies: MAX30003 max32630fthr DS1307
Diff: main.cpp
- Revision:
- 26:c41e561a02de
- Parent:
- 25:06ba30a29754
- Child:
- 27:3b45b47d735d
--- a/main.cpp Mon Nov 22 17:44:20 2021 +0000 +++ b/main.cpp Tue Dec 21 01:17:08 2021 +0000 @@ -155,8 +155,8 @@ uint32_t packet_1 = 0; uint8_t cksm_1 = 0; uint8_t cksm_2 = 0; - uint8_t header_device_id[3] = {0,0,210}; //OLD device ID - //uint8_t header_device_id[3] = {0,0,12}; // + //uint8_t header_device_id[3] = {0,0,210}; //OLD device ID + uint8_t header_device_id[3] = {0,0,12}; // uint8_t header_packet_type[2] = {0,2}; uint8_t battery_level[1] ={0}; @@ -282,7 +282,7 @@ // timer_fast.reset(); - if (tic==10) //C1 + if (tic==60) //C1 { S0=1; S1=0; @@ -291,7 +291,7 @@ RGBb=1; channel_num[0]= {1}; } - if (tic==20) //C2 + if (tic==120) //C2 { S0=0; S1=1; @@ -301,7 +301,7 @@ channel_num[0]= {2}; } - if (tic==30) // C0 + if (tic==180) // C0 { S0=0; S1=0; @@ -315,7 +315,7 @@ // for channel selection if (A==0) // - {tic=50; + {tic=185; S0=0; S1=0; RGBr=0; @@ -327,7 +327,7 @@ channel_num[0]= {0};} if (B==0) // - {tic=60; + {tic=190; S0=1; S1=0; RGBr=1; @@ -339,7 +339,7 @@ channel_num[0]= {1};} if (C==0) // - {tic=70; + {tic=200; S0=0; S1=1; RGBr=1;