Skip to content

Commit d5d12ae

Browse files
committed
use LED_BUILTIN
1 parent 72a4447 commit d5d12ae

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.cproject

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@
7676
<tool id="de.innot.avreclipse.tool.avrdude.app.release.440173151" name="AVRDude" superClass="de.innot.avreclipse.tool.avrdude.app.release"/>
7777
</toolChain>
7878
</folderInfo>
79-
<sourceEntries>
80-
<entry excluding="src/SBMInfo.cpp|src/lib/SoftwareWire.cpp" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
81-
</sourceEntries>
8279
</configuration>
8380
</storageModule>
8481
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>

src/SBMInfo/SBMInfo.ino

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ void TogglePin(uint8_t aPinNr);
6565
int readWord(uint8_t aFunction);
6666
void writeWord(uint8_t aFunction, uint16_t aValue);
6767

68-
// Pin 13 has an LED connected on most Arduino boards.
69-
const int LED_PIN = 13;
70-
7168
/*
7269
* Command definitions
7370
*/
@@ -172,7 +169,7 @@ BQ20Z70_PackVoltage, Pack_Voltage, &printVoltage } };
172169

173170
void setup() {
174171
// initialize the digital pin as an output.
175-
pinMode(LED_PIN, OUTPUT);
172+
pinMode(LED_BUILTIN, OUTPUT);
176173

177174
// Shutdown SPI, timers, and ADC
178175
PRR = (1 << PRSPI) | (1 << PRTIM1) | (1 << PRTIM2) | (1 << PRADC);
@@ -205,15 +202,15 @@ void setup() {
205202
do {
206203
tDeviceAttached = scanForAttachedI2CDevice();
207204
delay(500);
208-
TogglePin(LED_PIN);
205+
TogglePin(LED_BUILTIN);
209206
} while (tDeviceAttached < 0);
210207
}
211208

212209
uint16_t tVoltage;
213210
do {
214211
tVoltage = readWord(VOLTAGE);
215212
delay(500);
216-
TogglePin(LED_PIN);
213+
TogglePin(LED_BUILTIN);
217214
} while (tVoltage == 0xFFFF);
218215

219216
Serial.println(F("\r\n*** STATIC INFO ***"));

0 commit comments

Comments
 (0)