Pages: [1]   Go Down
Author Topic: DigitalToggle in 1.0  (Read 719 times)
0 Members and 1 Guest are viewing this topic.
berlin
Offline Offline
Full Member
***
Karma: 0
Posts: 154
fubbi.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The super useful library DigitalToggle  does not compile in 1.0
It works fine in 0023

http://arduino.cc/playground/Code/DigitalToggle

this is the error I get:

Code:
/Users/holby/Documents/Arduino/libraries/DigitalToggle/DigitalToggle.cpp: In function 'void digitalToggle(uint8_t)':
/Users/holby/Documents/Arduino/libraries/DigitalToggle/DigitalToggle.cpp:25: error: 'digitalPinToPort' was not declared in this scope
/Users/holby/Documents/Arduino/libraries/DigitalToggle/DigitalToggle.cpp:25: error: 'portInputRegister' was not declared in this scope
/Users/holby/Documents/Arduino/libraries/DigitalToggle/DigitalToggle.cpp:25: error: 'digitalPinToBitMask' was not declared in this scope

does it contain any clues? I would hate to drop using this wonderful little shortcut...

thanks

fubbi
Logged

0
Offline Offline
Shannon Member
****
Karma: 161
Posts: 10432
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the change needed is DigitalToggle.h should #include Arduino.h for Arduino 1.0 and beyond, not pins_arduino.h...
Logged

[ I won't respond to messages, use the forum please ]

New Brunswick, Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the change needed is DigitalToggle.h should #include Arduino.h for Arduino 1.0 and beyond, not pins_arduino.h...

yep, that fixes it!
Logged

Pages: [1]   Go Up
Jump to: