Mohsinsapraa / glcd-arduino

Automatically exported from code.google.com/p/glcd-arduino
0 stars 0 forks source link

Add support for mighty-1248p core, and bobduino #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The current "Sanguino" support is limited to the 644/644P,
The 1284/1284P are pin compatible.
Also there are now multiple Arduino pin # mappings for these chips.
The is a core that defines multiple variants:
"standard", "bobduino", "avr_developers" for the 644 and 1284.
Here is the site for the mighty-1284p core: 
http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/
https://github.com/maniacbug/mighty-1284p

The board, core, and variant information is not available
but for this situation there is a kludge to determine which variant
is in use:

If analogInputToDigitalPin is not defined then it is 
the old/original/current Sanguino mappings.

If it is defined,
You can look at the result of analogInputToDigitalPin(0)
If it is 31 then you using the "avr_developers" pin mapping.
If it is 24 then you are using the "standard" pin mapping.
If it is 21 then you are using the "bobduino" pin mapping.

So when 1284 support is added all three (really 4) variants will be supported
as well.

Original issue reported on code.google.com by bperry...@gmail.com on 17 Feb 2012 at 5:03