mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-30 03:26:13 +01:00
Add myHal.cpp example to driver
This commit is contained in:
parent
9104956009
commit
7bc0433197
|
@ -21,6 +21,15 @@
|
||||||
* The IO_EX-IOExpander.h device driver integrates with one or more EX-IOExpander devices.
|
* The IO_EX-IOExpander.h device driver integrates with one or more EX-IOExpander devices.
|
||||||
* This device driver will configure the device and all I/O ports on startup, along with
|
* This device driver will configure the device and all I/O ports on startup, along with
|
||||||
* interacting with the device for all input/output duties.
|
* interacting with the device for all input/output duties.
|
||||||
|
*
|
||||||
|
* To create EX-IOExpander devices, these are defined in myHal.cpp:
|
||||||
|
*
|
||||||
|
* #include "IO_EX-IOExpander.h"
|
||||||
|
*
|
||||||
|
* void halSetup() {
|
||||||
|
* // EXIOExpander::create(vpin, num_vpins, i2c_address, digital_pinmap, analogue_pinmap);
|
||||||
|
* EXIOExpander::create(800, 18, 0x90, DEFAULT_NANO_DIGITAL_PINMAP, DEFAULT_NANO_ANALOGUE_PINMAP);
|
||||||
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef IO_EX_IOEXPANDER_H
|
#ifndef IO_EX_IOEXPANDER_H
|
||||||
|
|
Loading…
Reference in New Issue
Block a user