The Teensy 3.1 uses a similar Kinetis chip to the Dash, but they differ in how some of the peripherals are configured. That would be a really good starting point though. A few things I noticed when just scanning over the code:
- It uses Serial ports for IO. Do Not use Serial1, as it is used for Cloud communications
- Serial3 is not supported on the Dash MCU
- Serial0 and Serial2 could be used, but the pin/port definitions are different. See the Dash user manual for the correct pins.
- A custom interrupt is used for the Serial port interrupts. You’ll need to implement
attachInterruptVector() that references the interrupt vector table in RAM, at
If you have success porting this library, please post it! If you get stuck somewhere, let us know and we’ll try and help.