Arduino 0022 to Arduino-1.0 doesn't work on Ubuntu 11.04

Ubuntu 11.04 (Natty) AMD64 Seeedstudio Stalker V2.1 board (ATmega328P) http://www.seeedstudio.com/depot/seeeduino-stalker-v2-p-727.html?cPath=132_133

/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:13:22: error: WProgram.h: No such file or directory
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp: In member function ‘uint8_t DS3231::readRegister(uint8_t)’:
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:123: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:127: error: ‘class TwoWire’ has no member named ‘receive’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp: In member function ‘void DS3231::writeRegister(uint8_t, uint8_t)’:
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:133: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:134: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp: In member function ‘uint8_t DS3231::begin()’:
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:143: error: ‘delay’ was not declared in this scope
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp: In member function ‘void DS3231::adjust(const DateTime&)’:
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:160: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:162: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:163: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:164: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:165: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:166: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:167: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:168: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp: In static member function ‘static DateTime DS3231::now()’:
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:176: error: ‘class TwoWire’ has no member named ‘send’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:180: error: ‘class TwoWire’ has no member named ‘receive’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:181: error: ‘class TwoWire’ has no member named ‘receive’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:183: error: ‘class TwoWire’ has no member named ‘receive’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:186: error: ‘class TwoWire’ has no member named ‘receive’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:187: error: ‘class TwoWire’ has no member named ‘receive’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:188: error: ‘class TwoWire’ has no member named ‘receive’
/usr/share/arduino-1.0/libraries/DS3231/DS3231.cpp:189: error: ‘class TwoWire’ has no member named ‘receive’

There was a lot of changes in arduino-1.0 including major refactoring. You'll have to go through sources and fix them - most important points are in this article http://blog.makezine.com/archive/2011/12/arduino-1-0-is-out-heres-what-you-need-to-know.html

Thanks very much awe_cz. I'll give adapting the code a shot but it's probably beyond my experience level right now. I'm going to contact Seeedstudio. They'll be getting plenty more email's about the lack of compatibility with Arduino-1.0 anyway.

Thanks again.

I updated the DS3231 library to Arduino 1.0.
This should work now.

Best regards,
Tim

DS3231.zip (8.39 KB)