battery_code
Dependencies: MAX30003 max32630fthr DS1307
Diff: main.cpp
- Revision:
- 24:98332ec40aff
- Parent:
- 23:288c5d1babd1
- Child:
- 25:06ba30a29754
--- a/main.cpp Tue Aug 03 19:39:42 2021 +0000 +++ b/main.cpp Tue Aug 17 16:39:40 2021 +0000 @@ -10,7 +10,15 @@ #define TARGET_TX_PIN P3_1 #define TARGET_RX_PIN P3_0 - +#define SDA P3_4 +#define SCL P3_5 + + +#define I2C_SDA P5_7 +#define I2C_SCL P6_0 + + Ds3231 rtc(SDA, SCL); + //Timer timer_fast; Timer t; MAX32630FTHR pegasus(MAX32630FTHR::VIO_3V3); @@ -24,9 +32,9 @@ //DigitalOut S3(P7_2); //channel feedback -DigitalIn A(P6_0); //P17 -DigitalIn B(P3_5); //P18 -DigitalIn C(P3_4); //P19 +//DigitalIn A(P6_0); //P17 +//DigitalIn B(P3_5); //P18 +//DigitalIn C(P3_4); //P19 void ecg_config(MAX30003 &ecgAFE); @@ -283,7 +291,7 @@ // for channel selection - if (A==0) // + /* if (A==0) // {tic=50; S0=0; S1=0; @@ -306,12 +314,7 @@ // S2=0; // S3=0; channel_num[0]= {2};} - - - - - - + */