sparkfun / SparkFun_Qwiic_OpenLog_Arduino_Library

Control the I2C based Qwiic OpenLog with ease! This library makes reading, writing, and even arithmetic easy.
Other
17 stars 9 forks source link

Status LED's don't blink #10

Open bradb1982 opened 3 years ago

bradb1982 commented 3 years ago

These examples are hardcoding the LED pin instead of using the LED_BUILTIN function. This causes the LED to not blink on the controlling module.
Possibly due to being coded for one type of board, not multiple.

OpenLog myLog; //Create instance
int ledPin = 13; //Status LED connected to digital pin 13
void setup()

Fix

int ledPin = LED_BUILTIN; //Status LED connected to digital pin 13