Skip to content

Commit 0656b03

Browse files
committed
Merge pull request #134 from bblacey/development
Changed the extended_fuses from 0xFE to 0x06 (set unused bits 3-7 to …
2 parents f6dbdcf + 4abaa6d commit 0656b03

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

hardware/MySensors/avr/boards.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ MysensorsMicro.bootloader.unlock_bits=0x3F
1616
MysensorsMicro.bootloader.lock_bits=0x0F
1717
MysensorsMicro.bootloader.low_fuses=0xE2
1818
MysensorsMicro.bootloader.high_fuses=0xD2
19-
MysensorsMicro.bootloader.extended_fuses=0xFE
19+
MysensorsMicro.bootloader.extended_fuses=0x06
2020
MysensorsMicro.bootloader.file=DualOptiboot/optiboot_atmega328_pro_8MHz.hex
2121

2222
MysensorsMicro.build.board=AVR_MICRO8

libraries/MySensors/MyConfig.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
// default LEDs blinking period in milliseconds
5959
#define DEFAULT_LED_BLINK_PERIOD 300
6060
// The RX LED default pin
61-
#define DEFAULT_RX_LED_PIN 8
61+
#define DEFAULT_RX_LED_PIN 6
6262
// The TX LED default pin
63-
#define DEFAULT_TX_LED_PIN 9
63+
#define DEFAULT_TX_LED_PIN 5
6464
// The Error LED default pin
65-
#define DEFAULT_ERR_LED_PIN 7
65+
#define DEFAULT_ERR_LED_PIN 4
6666

6767

6868
/**********************************

libraries/MySensors/MySensor.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,33 +110,33 @@ void MySensor::handleLedsBlinking() {
110110
// do the actual blinking
111111
if(countRx && countRx != 255) {
112112
// switch led on
113-
digitalWrite(pinRx, LOW);
113+
digitalWrite(pinRx, HIGH);
114114
}
115115
else if(!countRx) {
116116
// switching off
117-
digitalWrite(pinRx, HIGH);
117+
digitalWrite(pinRx, LOW);
118118
}
119119
if(countRx != 255)
120120
--countRx;
121121

122122
if(countTx && countTx != 255) {
123123
// switch led on
124-
digitalWrite(pinTx, LOW);
124+
digitalWrite(pinTx, HIGH);
125125
}
126126
else if(!countTx) {
127127
// switching off
128-
digitalWrite(pinTx, HIGH);
128+
digitalWrite(pinTx, LOW);
129129
}
130130
if(countTx != 255)
131131
--countTx;
132132

133133
if(countErr && countErr != 255) {
134134
// switch led on
135-
digitalWrite(pinEr, LOW);
135+
digitalWrite(pinEr, HIGH);
136136
}
137137
else if(!countErr) {
138138
// switching off
139-
digitalWrite(pinEr, HIGH);
139+
digitalWrite(pinEr, LOW);
140140
}
141141
if(countErr != 255)
142142
--countErr;
@@ -182,9 +182,9 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
182182
pinMode(pinEr, OUTPUT);
183183

184184
// Set initial state of leds
185-
digitalWrite(pinRx, HIGH);
186-
digitalWrite(pinTx, HIGH);
187-
digitalWrite(pinEr, HIGH);
185+
digitalWrite(pinRx, LOW);
186+
digitalWrite(pinTx, LOW);
187+
digitalWrite(pinEr, LOW);
188188

189189
// initialize counters
190190
countRx = 0;

0 commit comments

Comments
 (0)