mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-22 23:56:13 +01:00
4.2.41 Hal setup and DNOU8 fix
This commit is contained in:
parent
86cb8f4666
commit
273f55b143
|
@ -75,6 +75,9 @@ void setup()
|
||||||
|
|
||||||
DIAG(F("License GPLv3 fsf.org (c) dcc-ex.com"));
|
DIAG(F("License GPLv3 fsf.org (c) dcc-ex.com"));
|
||||||
|
|
||||||
|
// Initialise HAL layer before reading EEprom or setting up MotorDrivers
|
||||||
|
IODevice::begin();
|
||||||
|
|
||||||
DISPLAY_START (
|
DISPLAY_START (
|
||||||
// This block is still executed for DIAGS if display not in use
|
// This block is still executed for DIAGS if display not in use
|
||||||
LCD(0,F("DCC-EX v%S"),F(VERSION));
|
LCD(0,F("DCC-EX v%S"),F(VERSION));
|
||||||
|
@ -97,9 +100,6 @@ void setup()
|
||||||
EthernetInterface::setup();
|
EthernetInterface::setup();
|
||||||
#endif // ETHERNET_ON
|
#endif // ETHERNET_ON
|
||||||
|
|
||||||
// Initialise HAL layer before reading EEprom or setting up MotorDrivers
|
|
||||||
IODevice::begin();
|
|
||||||
|
|
||||||
// As the setup of a motor shield may require a read of the current sense input from the ADC,
|
// As the setup of a motor shield may require a read of the current sense input from the ADC,
|
||||||
// let's make sure to initialise the ADCee class!
|
// let's make sure to initialise the ADCee class!
|
||||||
ADCee::begin();
|
ADCee::begin();
|
||||||
|
|
|
@ -55,6 +55,7 @@ public:
|
||||||
pinMode(_clockPin,OUTPUT);
|
pinMode(_clockPin,OUTPUT);
|
||||||
pinMode(_dataPin,_pinMap?INPUT_PULLUP:OUTPUT);
|
pinMode(_dataPin,_pinMap?INPUT_PULLUP:OUTPUT);
|
||||||
_display();
|
_display();
|
||||||
|
if (!_pinMap) _loopOutput();
|
||||||
}
|
}
|
||||||
|
|
||||||
// loop called by HAL supervisor
|
// loop called by HAL supervisor
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
|
|
||||||
#define VERSION "4.2.40"
|
#define VERSION "4.2.41"
|
||||||
|
// 4.2.41 - Move HAl startup to ASAP in setup()
|
||||||
|
// - Fix DNOU8 output pin setup to all LOW
|
||||||
// 4.2.40 - Automatically detect conflicting default I2C devices and disable
|
// 4.2.40 - Automatically detect conflicting default I2C devices and disable
|
||||||
// 4.2.39 - DFplayer driver now polls device to detect failures and errors.
|
// 4.2.39 - DFplayer driver now polls device to detect failures and errors.
|
||||||
// 4.2.38 - Clean up compiler warning when IO_RotaryEncoder.h included
|
// 4.2.38 - Clean up compiler warning when IO_RotaryEncoder.h included
|
||||||
|
|
Loading…
Reference in New Issue
Block a user