mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-25 13:41:23 +01:00
Correct number of usable pins for ArduinoPins class.
This commit is contained in:
parent
f86a14ceab
commit
5f5efa7d23
@ -42,7 +42,7 @@
|
|||||||
// and PCA9685.
|
// and PCA9685.
|
||||||
void IODevice::begin() {
|
void IODevice::begin() {
|
||||||
// Initialise the IO subsystem
|
// Initialise the IO subsystem
|
||||||
ArduinoPins::create(2, NUM_DIGITAL_PINS-3); // Reserve pins for direct access
|
ArduinoPins::create(2, NUM_DIGITAL_PINS-2); // Reserve pins for direct access
|
||||||
// Predefine two PCA9685 modules 0x40-0x41
|
// Predefine two PCA9685 modules 0x40-0x41
|
||||||
// Allocates 32 pins 100-131
|
// Allocates 32 pins 100-131
|
||||||
PCA9685::create(100, 16, 0x40);
|
PCA9685::create(100, 16, 0x40);
|
||||||
|
Loading…
Reference in New Issue
Block a user