// myCMRI.h to be included in myAutomation.h // see myHal.cpp_example.txt for explanation of parameters #include "IO_CMRI.h" // CMRI nodes // in config.h #define ARDUINOCMRI_COMPATIBLE // define CMRI bus HAL(CMRIbus, 0, Serial5, 9600, 500, 51) // define CMRI nodes HAL(CMRInode, 900, 72, 0, 4, 'M') // define the pins - this is S-MINI emulation 24/48 I/O // 16 of 24 input pins //JMRI_SENSOR(900,16) // broadcast ") // ... these pins do not need to be defined unless needed for JMRI // a testing sequence // pin 941 is wired to pin 907. LED on pin 943 // pin 942 is wired to pin 911. // use commands etc. AUTOSTART SEQUENCE(99) AT(907) SET(943) AT(911) RESET(943) FOLLOW(99) // CMRI sketch used for testing available here // https://www.trainboard.com/highball/index.php?threads/24-in-48-out-card-for-jmri.116454/page-2#post-1141569