Skip to content

Commit

Permalink
Comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
ttlappalainen committed May 16, 2016
1 parent 077effa commit a804b96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions NMEA2000_CAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ Author: Timo Lappalainen
automatically select suitable CAN library according to board
selected on Arduino development environment. You can still force
library by adding one of next defines before including library:
#define USE_N2K_MCP_CAN 1 // for use with SPI and MCP2515 can bus controller
#define USE_N2K_DUE_CAN 2 // for use with due based CAN
#define USE_N2K_TEENSY_CAN 3 // for use with Teensy 3.1/3.2 boards
#define USE_N2K_CAN 1 // for use with SPI and MCP2515 can bus controller
#define USE_N2K_CAN 2 // for use with due based CAN
#define USE_N2K_CAN 3 // for use with Teensy 3.1/3.2 boards
#define USE_N2K_CAN 4 // for use with avr boards
There are also library specific defines:
mcp_can:
#define N2k_SPI_CS_PIN 53 // Pin for SPI Can Select
#define N2k_CAN_INT_PIN 21 // Use interrupt and it is connected to pin 21
#define USE_MCP_CAN_CLOCK_SET 8 // possible values 8 for 8Mhz and 16 for 16 Mhz clock
Expand Down
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

Object oriented NMEA2000 library for Arduino type Boards

Library gives you a easy way to make NMEA2000->PC interface like Actisense NGT1
or e.g. temperature sensor node to NMEA2000 bus.
Library gives you easy way to make different kind of NMEA2000 bus devices like NMEA2000->PC interface (like Actisense NGT1),
NMEA0183->NMEA2000 converter, sensor (e.g. temperature, wind) node.

To use Arduino Due board internal CAN you will also need NMEA2000_due library and
due_can library, which you can download from https://github.com/collin80/due_can

To use Arduino boards with MCP2515 CAN bus controller, you will also need NMEA2000_mcp library
and mcp_can library. mcp_can library can be originally found on https://github.com/Seeed-Studio/CAN_BUS_Shield
Currently NMEA2000_mcp library uses developed version of mcp_can library, which allows also to use 8MHz clock and
Note that NMEA2000_mcp library uses developed version of mcp_can library, which allows also to use 8MHz clock and
has been tested with Maple Mini. So until these improvements has not been implemented to Seeed-Studio,
use library found on https://github.com/peppeve/CAN_BUS_Shield

Expand All @@ -27,7 +27,7 @@ which you can download from https://github.com/thomasonw/avr_can

13.03.2016 Fix of using PROGMEM. Now also product information defined to PROGMEM works right.

13.03.2016 Fix of using PROGMEM. Still does work right with product information in PROGMEM. So all changes after 09.03 are still under validation.
13.03.2016 Fix of using PROGMEM. Still does not work right with product information in PROGMEM. So all changes after 09.03 are still under validation.

13.03.2016 More memory optimization - thanks for thomasonw. Constant message strings has been marked with F(...) moving them to flash instead of RAM.

Expand Down

0 comments on commit a804b96

Please sign in to comment.