Changed the architectures to now be * as we're no longer tied to AVR specific hardware, however I've listed the architectures its been tested on
Fixed a bug with CV bit-write
This commit is contained in:
@@ -1234,9 +1234,9 @@ void execDccProcessor( DCC_MSG * pDccMsg )
|
|||||||
uint8_t currentValue = readCV(cvAddress);
|
uint8_t currentValue = readCV(cvAddress);
|
||||||
uint8_t newValueMask = 1 << (cvValue & 0b00000111);
|
uint8_t newValueMask = 1 << (cvValue & 0b00000111);
|
||||||
if(cvValue & 0b00001000)
|
if(cvValue & 0b00001000)
|
||||||
writeCV(cvAddress, cvValue | newValueMask);
|
writeCV(cvAddress, currentValue | newValueMask);
|
||||||
else
|
else
|
||||||
writeCV(cvAddress, cvValue & ~newValueMask);
|
writeCV(cvAddress, currentValue & ~newValueMask);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -44,8 +44,6 @@
|
|||||||
#include "WProgram.h"
|
#include "WProgram.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "pins_arduino.h"
|
|
||||||
|
|
||||||
#include "EEPROM.h"
|
#include "EEPROM.h"
|
||||||
|
|
||||||
#ifndef NMRADCC_IS_IN
|
#ifndef NMRADCC_IS_IN
|
||||||
|
@@ -3,7 +3,7 @@ version=2.0.0
|
|||||||
author=Alex Shepherd, Wolfgang Kuffer, Geoff Bunza, Martin Pischky, Franz-Peter Müller, Sven (littleyoda)
|
author=Alex Shepherd, Wolfgang Kuffer, Geoff Bunza, Martin Pischky, Franz-Peter Müller, Sven (littleyoda)
|
||||||
maintainer=Alex Shepherd <kiwi64ajs@gmail.com>
|
maintainer=Alex Shepherd <kiwi64ajs@gmail.com>
|
||||||
sentence=Enables NMRA DCC Communication
|
sentence=Enables NMRA DCC Communication
|
||||||
paragraph=This library allows you to interface to a NMRA DCC track signal and receive DCC commands. The library currently supports the AVR ATTiny84/85 & ATMega88/168/328/32u4, ESP8266 and Teensy 3.x using the INT0/1 Hardware Interrupt and micros() ONLY and no longer uses Timer0 Compare Match B, which makes it much more portable to other platforms.
|
paragraph=This library allows you to interface to a NMRA DCC track signal and receive DCC commands. The library has been tested on AVR ATTiny84/85 & ATMega88/168/328/32u4, ESP8266 and Teensy 3.x using the INT0/1 Hardware Interrupt and micros() ONLY and no longer uses Timer0 Compare Match B, which makes it much more portable to other platforms.
|
||||||
category=Communication
|
category=Communication
|
||||||
url=https://github.com/mrrwa/NmraDcc
|
url=https://github.com/mrrwa/NmraDcc
|
||||||
architectures=avr,esp8266,STM32F1
|
architectures=*
|
||||||
|
Reference in New Issue
Block a user