Commit Graph

40 Commits

Author SHA1 Message Date
Alex Shepherd
07933e42a8 Fixed some bugs around DCC Accessory Output Mode Addressing and handling of edge cases
Add function to set Accessory Decoder Address from next received Accessory Decoder command and new notify call-backs when a new address is set
Added new notifyDccSigOutputState() with no OutputIndex parameter
Bumped version but have NOT tagged the library as it needs more testing and checking for breakage
2017-04-27 01:26:25 +12:00
Franz-Peter
f8f106962f Stm32 support (#12)
* 1st version for STM32

bit detection and EEPROM changed to support STM32

* added STM32F1 support

updated files: library.properties. NmraDcc.cpp, NmraDcc.h

* switch off debug output

* missing #endif added

Testports for esp8266 defined
2017-01-30 17:08:41 +13:00
Alex Shepherd
dafa1c9964 Merged Geoff's Update-Examples-5.4 branch 1.4.2 2016-11-27 19:49:29 +13:00
Alex Shepherd
dcbd20ef7e Merge pull request #11 from mrrwa/Update-Examples-5.4
V5.4 Bug Fixes and Minor Chages
2016-11-27 19:42:57 +13:00
Geoff Bunza
e622a596d7 V5.4 Bug Fixes and Minor Chages
Bug Fix to allow maximum of 17 servos
Bug Fix to correct 2 reload #define definitions
Change to major Loop Delay cut in half to allow for fewer misses of DCC
packet detection
2016-11-26 12:42:30 -08:00
Alex Shepherd
4c1d5fd6e4 changed version to 1.4.1 as a bug fix as something changed in the ESP8266 Core 1.4.1 2016-11-16 10:03:36 +13:00
Alex Shepherd
3a5986d10d added esp8266 to supported architectures
added addition #include file for esp8266 to resolve missing SPI_FLASH_SEC_SIZE symbol
2016-11-16 10:01:36 +13:00
Alex Shepherd
9035e55930 Added Sven to contributors and incremented the version 2016-08-20 17:46:29 +12:00
Alex Shepherd
3eee73f6cd replaced '4096' with definition SPI_FLASH_SEC_SIZE from header file 2016-08-20 17:36:47 +12:00
Sven Bursch-Osewold
d3059d2f4e ESP8266 Support 2016-08-18 19:57:47 +02:00
Alex Shepherd
0c3385b27d Merge pull request #4 from MicroBahner/master
Update DCC bit decoding
2016-07-23 19:48:42 +12:00
MicroBahner
e0d46ff9b9 DCC_DEBUG: new function getNestedIrqCount()
getNestedIrqCount() returns how often the DCC-Irq interrupted itself.
This is a hint that the DCC Signal is not clean and there are glitches.
2016-07-18 16:21:20 +02:00
MicroBahner
0bab98c838 Consider glitches on DCC line
Glitches on the DCC line could make the decoding Irq hang in an dead
lock state. ( if it interrupts itself - this is now recognized )
2016-07-18 10:57:54 +02:00
Alex Shepherd
47d052a939 Added Franz-Peter Müller to the authors list 1.3.0 2016-06-11 16:21:48 +12:00
Alex Shepherd
275dc8ea94 Updated description paragraph to mention that we no longer use the Timer0 Compare MatchB interrupt 2016-06-11 15:58:53 +12:00
Alex Shepherd
dc45375a5a Changed version to 1.3.0 2016-06-11 15:47:03 +12:00
Alex Shepherd
9e656f49c6 Commented out #define NMRA_DCC_ENABLE_14_SPEED_STEP_MODE 2016-06-11 15:46:05 +12:00
Alex Shepherd
2c55e735b7 Added Geoff's 5.1 changes 2016-06-11 15:31:34 +12:00
Alex Shepherd
515e56d918 Merge branch 'master' into MicroBahner-Without-use-of-HW-timers
* master:
  Fixed issue reported by lucari Despite the values set for F0-4, a packet with all fields set to zero is received. The problem seems to be related to NrmaDcc.cpp and a hidden 'break' statement at line 484. This should be swapped with the #endif on the next line. The result is that when a Speed packet is processed, it drops through to the next case statement and sends an empty DCCFunc command.
  Added Iowa Scaled Engineering ARD-DCCSHIELD example
  fixed call-back function void notifyDccFunc and changed version to 1.2.1
2016-05-17 12:09:50 +12:00
Alex Shepherd
ebfb58c1fb Fixed issue reported by lucari
Despite the values set for F0-4, a packet with all fields set to zero is received. The problem seems to be related to NrmaDcc.cpp and a hidden 'break' statement at line 484. This should be swapped with the #endif on the next line. The result is that when a Speed packet is processed, it drops through to the next case statement and sends an empty DCCFunc command.
2016-05-11 20:53:06 +12:00
Alex Shepherd
f50fea1a85 Added Iowa Scaled Engineering ARD-DCCSHIELD example 2016-04-09 13:06:05 +12:00
Alex Shepherd
1a60cb8cf6 fixed call-back function void notifyDccFunc and changed version to 1.2.1 1.2.1 2016-03-28 11:10:09 +13:00
Alex Shepherd
b8dac78697 merged in master and added initAccessoryDecoder method 2016-03-25 17:46:22 +13:00
Alex Shepherd
e087dc9052 Merge branch 'master' into MicroBahner-Without-use-of-HW-timers 2016-03-24 18:51:12 +13:00
Alex Shepherd
8dc6ee950f fixed call-back function void notifyDccFunc( uint16_t Addr, DCC_ADDR_TYPE AddrType, FN_GROUP FuncGrp, uint8_t FuncState) to include the new parameter: DCC_ADDR_TYPE AddrType 2016-03-20 20:45:33 +13:00
Alex Shepherd
c4e693550c reversed a change to the state parameter of the notifyDccAccState() call-back that may have broken compatibility with existing code
more improvements to the NmraDccAccessoryDecoder_Pulsed_8 example code
2016-03-20 19:58:03 +13:00
Alex Shepherd
4e4007ebf7 Added new call-back functions: notifyDccAccTurnoutBoard and notifyDccAccTurnoutOutput
Added new example NmraDccAccessoryDecoder_Pulsed_8
changed version to 1.2.0
2016-03-19 23:24:55 +13:00
Alex Shepherd
70b44eb5d4 Added a MultiFunction decoder example and change the name of the other to Accessory decoder 2016-02-13 23:34:14 +13:00
MicroBahner
3cff15994c Switchoff DBGVAR
No Debug-Output
2016-01-03 14:23:45 +01:00
MicroBahner
d47795e54a No HW dependencies
Compiles for AVR and Teensy (Arm) without modifications
2016-01-03 14:17:02 +01:00
Alex Shepherd
3a293152fc Merge pull request #1 from mrrwa/SMA_Examples_Update
Bug fix line 625- missing break statement added
2015-12-20 23:57:32 +13:00
Geoff Bunza
467a1866ca Bug fix line 625- missing break statement added 2015-12-18 11:16:40 -08:00
Alex Shepherd
ed03e292e4 corrected information in the file headers to reflect change to MRRwA from OpenDCC 2015-11-29 16:34:10 +13:00
Alex Shepherd
d0b4f71282 Added missing example sketches 2015-11-17 08:02:31 +13:00
Alex Shepherd
f903b3ab53 Added in enhancements from Martin Pischky for 14 & 28 speed steps and merged in more examples from Geoff into the examples/SMA folder 2015-11-16 23:49:12 +13:00
Alex Shepherd
8f6fbdead1 Added extern "C" wrapper around C call-back functions 2015-09-27 09:36:25 +13:00
Alex Shepherd
e19dd605c4 Added Geoff Bunza to Authors list 2015-05-14 00:23:28 +12:00
Alex Shepherd
b01ca7f31e Initial checkin to git and added library.properties 2015-05-12 18:46:14 +12:00
Alex Shepherd
0091ab0cd9 Update README.md 2015-05-12 18:42:06 +12:00
Alex Shepherd
9406265156 Initial commit 2015-05-12 18:40:22 +12:00