Commit d5d12ae3 authored by Armin's avatar Armin
Browse files

use LED_BUILTIN

parent 72a44477
...@@ -76,9 +76,6 @@ ...@@ -76,9 +76,6 @@
<tool id="de.innot.avreclipse.tool.avrdude.app.release.440173151" name="AVRDude" superClass="de.innot.avreclipse.tool.avrdude.app.release"/> <tool id="de.innot.avreclipse.tool.avrdude.app.release.440173151" name="AVRDude" superClass="de.innot.avreclipse.tool.avrdude.app.release"/>
</toolChain> </toolChain>
</folderInfo> </folderInfo>
<sourceEntries>
<entry excluding="src/SBMInfo.cpp|src/lib/SoftwareWire.cpp" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
</sourceEntries>
</configuration> </configuration>
</storageModule> </storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
......
...@@ -65,9 +65,6 @@ void TogglePin(uint8_t aPinNr); ...@@ -65,9 +65,6 @@ void TogglePin(uint8_t aPinNr);
int readWord(uint8_t aFunction); int readWord(uint8_t aFunction);
void writeWord(uint8_t aFunction, uint16_t aValue); void writeWord(uint8_t aFunction, uint16_t aValue);
// Pin 13 has an LED connected on most Arduino boards.
const int LED_PIN = 13;
/* /*
* Command definitions * Command definitions
*/ */
...@@ -172,7 +169,7 @@ BQ20Z70_PackVoltage, Pack_Voltage, &printVoltage } }; ...@@ -172,7 +169,7 @@ BQ20Z70_PackVoltage, Pack_Voltage, &printVoltage } };
void setup() { void setup() {
// initialize the digital pin as an output. // initialize the digital pin as an output.
pinMode(LED_PIN, OUTPUT); pinMode(LED_BUILTIN, OUTPUT);
// Shutdown SPI, timers, and ADC // Shutdown SPI, timers, and ADC
PRR = (1 << PRSPI) | (1 << PRTIM1) | (1 << PRTIM2) | (1 << PRADC); PRR = (1 << PRSPI) | (1 << PRTIM1) | (1 << PRTIM2) | (1 << PRADC);
...@@ -205,7 +202,7 @@ void setup() { ...@@ -205,7 +202,7 @@ void setup() {
do { do {
tDeviceAttached = scanForAttachedI2CDevice(); tDeviceAttached = scanForAttachedI2CDevice();
delay(500); delay(500);
TogglePin(LED_PIN); TogglePin(LED_BUILTIN);
} while (tDeviceAttached < 0); } while (tDeviceAttached < 0);
} }
...@@ -213,7 +210,7 @@ void setup() { ...@@ -213,7 +210,7 @@ void setup() {
do { do {
tVoltage = readWord(VOLTAGE); tVoltage = readWord(VOLTAGE);
delay(500); delay(500);
TogglePin(LED_PIN); TogglePin(LED_BUILTIN);
} while (tVoltage == 0xFFFF); } while (tVoltage == 0xFFFF);
Serial.println(F("\r\n*** STATIC INFO ***")); Serial.println(F("\r\n*** STATIC INFO ***"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment