 
  */
 
-#include "M2RET.h"
+
+//  (!!! else comment out !!!)
+//#define _M2IO   // define to enable the use of the M2_12VIO library & the safe use of the I/O pins as well as PWM in M2RET
+
 #include "config.h"
 #include <due_can.h>
 #include <Arduino_Due_SD_HSMCI.h> // This creates the object SD (HSMCI connected sdcard)

        Can0.begin(settings.CAN0Speed, 255);
        SerialUSB.print("Enabled CAN0 with speed ");
        SerialUSB.println(settings.CAN0Speed);
    } else Can0.disable();

    if (settings.CAN1_Enabled) {
        if (settings.CAN1ListenOnly) {


ELM327Emu elmEmulator;

#ifdef _M2IO
    M2_12VIO M2IO;  // M2_12VIO constructor !!!! DONT CHANGE !!!

    // !!! Uncomment to display M2_IO usage with M2RET Demonstration !!!
    //#define _M2IO_Demo

    #ifdef _M2IO_Demo
        uint32_t Display_Time = 0;   //Debugging M2_12VIO Analohue & digital demonstration usage in main loop()
    #else
        #undef _M2IO_Demo
    #endif
#else
    #undef _M2IO_Demo
#endif

SerialConsole console;

bool digTogglePinState;
uint8_t digTogglePinCounter;




void CANHandler() {
    SWCAN.intHandler();
