Here is where we will be keeping all of our M2 code. We encourage you to make suggestions, make pull requests, and generally get involved! Thanks for visiting.
To get up and rolling quickly, do this:
- Click "Clone or download" and then "Download ZIP"
- Move each folder to your Arduino Libraries
- Start (or Resart) your Arduino IDE and you will see several examples for each library ready to try out.
- Make sure to follow these instructions before uploading to M2:
http://macchina.cc/m2/getting-started
Each of these Libraries adds functionality to M2 as summarized here:
Arduino_Due_SD_HSCMI
Gives access to HSMCI (High Speed MultiMedia Card Interface) on M2. SD_HSMCI
is support code that will also need to be in place.
LIN
LIN bus functionality for M2 on 2 channels
SamNonDuePin
Gives M2 access to "non-Due" pins.
SW_CAN
Single Wire CAN (GMLAN) give M2 signle-wire CAN functionality. Uses external MCP2515 tranciever connected to SAM3X via SPI. Library currently includes an example of sendind SW CAN messege.
#####For CAN functionality, use the excellent library: