update examples

This commit is contained in:
loovee
2015-04-28 09:38:27 +08:00
parent 5e5dea8169
commit 09fb19398c
7 changed files with 68 additions and 47 deletions
+5 -1
View File
@@ -2,7 +2,11 @@
#include <mcp_can.h>
#include <SPI.h>
MCP_CAN CAN(10); // Set CS to pin 10
// the cs pin of the version after v1.1 is default to D9
// v0.9b and v1.0 is default D10
const int SPI_CS_PIN = 9;
MCP_CAN CAN(SPI_CS_PIN); // Set CS pin
void setup()
{