Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in Bobuino pins_arduino.h #5

Open
oric-dan opened this issue Feb 26, 2013 · 0 comments
Open

Errors in Bobuino pins_arduino.h #5

oric-dan opened this issue Feb 26, 2013 · 0 comments

Comments

@oric-dan
Copy link

There are 4 problems in referenced file.

First, the following line should be changed to the one below:

define analogPinToChannel(p) ( (p) < NUM_ANALOG_INPUTS ? NUM_ANALOG_INPUTS - (p) : -1 )

define analogPinToChannel(p) ( (p) < NUM_ANALOG_INPUTS ? (NUM_ANALOG_INPUTS-1) - (p) : -1 )

Secondly, the following line produces a compile time error if you try to upload the
ArduinoISP sketch into a mighty-1284P bootloader chip using the Arduino IDE
with Board selection = Bobuino.

extern const uint8_t digital_pin_to_timer_PGM[NUM_DIGITAL_PINS];

It should be removed, or else the line ... #include "pins_arduino.h" ... should be
removed from the ArduinoISP sketch itself.

Thirdly, the line of item 2 also does not match the array being referenced, ie

const uint8_t PROGMEM digital_pin_to_timer_PGM[NUM_DIGITAL_PINS] = {...}

Fourthly, it also does not match the associated line in Arduino.h in the IDE directory:

extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant