From 5f5efa7d23e83869d69cc45f9efad13280a4c939 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Thu, 12 Aug 2021 21:18:06 +0100 Subject: [PATCH] Correct number of usable pins for ArduinoPins class. --- IODevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IODevice.cpp b/IODevice.cpp index d49eedc..81bea0e 100644 --- a/IODevice.cpp +++ b/IODevice.cpp @@ -42,7 +42,7 @@ // and PCA9685. void IODevice::begin() { // 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 // Allocates 32 pins 100-131 PCA9685::create(100, 16, 0x40);