![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Changes added for the DISCO-L476VG
Revision 5:fc8269b40d74, committed 2021-10-29
- Comitter:
- tgrosch
- Date:
- Fri Oct 29 12:06:18 2021 +0000
- Parent:
- 4:5273ab1085ab
- Commit message:
- EE4800_Example
Changed in this revision
MAX30102/MAX30102.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MAX30102/MAX30102.cpp Thu May 19 22:04:06 2016 +0000 +++ b/MAX30102/MAX30102.cpp Fri Oct 29 12:06:18 2021 +0000 @@ -62,7 +62,8 @@ #ifdef TARGET_MAX32600MBED I2C i2c(I2C1_SDA, I2C1_SCL); #else -I2C i2c(I2C_SDA, I2C_SCL); +//I2C i2c(I2C_SDA, I2C_SCL); +I2C i2c(PB_7, PB_6); #endif bool maxim_max30102_write_reg(uint8_t uch_addr, uint8_t uch_data)
--- a/main.cpp Thu May 19 22:04:06 2016 +0000 +++ b/main.cpp Fri Oct 29 12:06:18 2021 +0000 @@ -87,6 +87,7 @@ uint8_t uch_dummy; Serial pc(USBTX, USBRX); //initializes the serial port + #ifdef TARGET_KL25Z PwmOut led(PTB18); //initializes the pwm output that connects to the on board LED DigitalIn INT(PTD1); //pin PTD1 connects to the interrupt output pin of the MAX30102 @@ -97,6 +98,8 @@ #ifdef TARGET_MAX32600MBED PwmOut led(LED_RED); //initializes the pwm output that connects to the on board LED DigitalIn INT(P2_0); //pin P20 connects to the interrupt output pin of the MAX30102 +#else +DigitalIn INT(PD_0); #endif // the setup routine runs once when you press reset: