# Max30105

**URL:** <https://community.sparkfun.com/t/max30105/38193>\
**Category:** Biometrics\
**Created:** [November 11, 2019, 3:06am UTC](https://community.sparkfun.com/t/max30105/38193 "2019-11-11T03:06:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![geissler2](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@geissler2](https://community.sparkfun.com/u/geissler2)\
**Post date:** [November 11, 2019, 3:06am UTC](https://community.sparkfun.com/t/max30105/38193/1 "2019-11-11T03:06:22Z")

</div>

Hello.

I am trying to Use the Max 30105 for an engineering project where we are using the red Led and photon detector to locate veins. I am trying to disable the infrared and Green light to decrease the lag time from the led. My first step was to try and modify the Max30105.h file by commenting out the setpulseamplitude lines for the IR and Green led. However, I am having troubles compiling anytime I comment out any of the sections.

What is the best way to modify the code so the red LED is always HIGH?

Any help would be appreciated.

Thanks,

Tom

---

<div class="post-metadata">

**Author:** ![El\_Duderino](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/el_duderino/32/6367_2.png) [@El\_Duderino](https://community.sparkfun.com/u/El_Duderino)\
**Post date:** [November 11, 2019, 6:13pm UTC](https://community.sparkfun.com/t/max30105/38193/2 "2019-11-11T18:13:28Z")

</div>

Hi Tom,

[[This function](https://github.com/sparkfun/SparkFun_MAX3010x_Sensor_Library/blob/master/src/MAX30105.cpp#L240) in the Arduino library lets you choose which LEDs you want to use for sampling. Page 19 of the [[datasheet](https://cdn.sparkfun.com/assets/learn_tutorials/5/7/7/MAX30105_3.pdf) will have more information on choosing which LED to use.]([https://cdn.sparkfun.com/assets/learn\_tutorials/5/7/7/MAX30105\_3.pdf](https://cdn.sparkfun.com/assets/learn_tutorials/5/7/7/MAX30105_3.pdf))]([SparkFun\_MAX3010x\_Sensor\_Library/src/MAX30105.cpp at master · sparkfun/SparkFun\_MAX3010x\_Sensor\_Library · GitHub](https://github.com/sparkfun/SparkFun_MAX3010x_Sensor_Library/blob/master/src/MAX30105.cpp#L240))
