From 322cb3db54e88071a7230b2a6f3eda566eca3298 Mon Sep 17 00:00:00 2001 From: peteGSX Date: Thu, 29 Dec 2022 08:44:08 +1000 Subject: [PATCH] Include driver in IODevice.h --- IODevice.h | 1 + IO_EXIOExpander.h | 4 +--- myHal.cpp_example.txt | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/IODevice.h b/IODevice.h index ce47267..942fb64 100644 --- a/IODevice.h +++ b/IODevice.h @@ -408,5 +408,6 @@ private: #include "IO_MCP23008.h" #include "IO_MCP23017.h" #include "IO_PCF8574.h" +#include "IO_EXIOExpander.h" #endif // iodevice_h diff --git a/IO_EXIOExpander.h b/IO_EXIOExpander.h index ff6db8e..151a319 100644 --- a/IO_EXIOExpander.h +++ b/IO_EXIOExpander.h @@ -23,8 +23,7 @@ * interacting with the device for all input/output duties. * * To create EX-IOExpander devices, these are defined in myHal.cpp: -* -* #include "IO_EXIOExpander.h" +* (Note the device driver is included by default) * * void halSetup() { * // EXIOExpander::create(vpin, num_vpins, i2c_address, digitalPinCount, analoguePinCount); @@ -45,7 +44,6 @@ #ifndef IO_EX_IOEXPANDER_H #define IO_EX_IOEXPANDER_H -#include "IODevice.h" #include "I2CManager.h" #include "DIAG.h" #include "FSH.h" diff --git a/myHal.cpp_example.txt b/myHal.cpp_example.txt index c56a03d..c95aaed 100644 --- a/myHal.cpp_example.txt +++ b/myHal.cpp_example.txt @@ -21,7 +21,6 @@ #include "IO_VL53L0X.h" // Laser time-of-flight sensor #include "IO_DFPlayer.h" // MP3 sound player //#include "IO_EXTurntable.h" // Turntable-EX turntable controller -// #include "IO_EXIOExpander.h" // EX-IOExpander device driver //==========================================================================