BobbyMi / ds1307new

Automatically exported from code.google.com/p/ds1307new
0 stars 0 forks source link

Doesn't work on Arduino 1.0 #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Arduino 1.0 IDE
2. Try to compile example sketch
3. ??? Profit!

What is the expected output? What do you see instead?
I expect it to compile. It complains about WProgram.h or some crap.

What version of the product are you using? On what operating system?
Arduino 1.0 on Mac OSX, DS1307new_v1.22

Please provide any additional information below.
I know Arduino 1.0 changed a bunch of things with the i2c commands.

Original issue reported on code.google.com by unacloc...@gmail.com on 4 Dec 2011 at 5:11

GoogleCodeExporter commented 9 years ago
i will work on this

Original comment by olikr...@gmail.com on 4 Dec 2011 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by olikr...@gmail.com on 4 Dec 2011 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by olikr...@gmail.com on 4 Dec 2011 at 10:42

GoogleCodeExporter commented 9 years ago
Good summary of changes for Arduino 1.0
http://blog.makezine.com/2011/12/01/arduino-1-0-is-out-heres-what-you-need-to-kn
ow/

#if ARDUINO >= 100
  #include "Arduino.h"
#else
  #include "WProgram.h"
#endif

Should be an easy fix.

Original comment by dbgra...@gmail.com on 27 Jan 2012 at 1:25

GoogleCodeExporter commented 9 years ago
It's not an easy fix. Try that. The I2C commands were changed dramatically. 
Can't just change the .h reference.

Original comment by unacloc...@gmail.com on 27 Jan 2012 at 1:27

GoogleCodeExporter commented 9 years ago
Hi All
Is there an issue with ds1307new? According Arduino 1.0 I should have fixed 
everything. And yes, sure, it is not just a rename of the header file.
But all this has been done.

Oliver

Original comment by olikr...@gmail.com on 27 Jan 2012 at 5:14