Home › Evil Mad Scientist Forums › Clock Kits › Alpha Clock Five, Error Compiling sample sketches
- This topic has 5 replies, 2 voices, and was last updated 12 years, 8 months ago by Windell Oskay.
- 
		AuthorPosts
- 
		
			
				
February 5, 2013 at 4:24 pm #20184eroon26ParticipantI’m trying to test out the sample sketches that came with the alphafive library, and encountered error compiling.Am I missing a library or something? I’ve just followed the instructions on wiki… I would appreciate any help!/Users/
 /Documents/Arduino/libraries/alphafive/alphafive.cpp: In function ‘byte a5CheckForRTC()’:/Users/
 /Documents/Arduino/libraries/alphafive/alphafive.cpp:753: error: call of overloaded ‘write(int)’ is ambiguous/Applications/Arduino.app/Contents/Resources/Java/libraries/Wire/Wire.h:55: note: candidates are: virtual size_t TwoWire::write(uint8_t)/Applications/Arduino.app/Contents/Resources/Java/hardware/sanguino/cores/arduino/Print.h:49: note: size_t Print::write(const char*)February 5, 2013 at 5:04 pm #21171Windell OskayKeymasterHmm. I just tested all of the sample code, and I don’t get that error. Which version of Arduino are you using?February 5, 2013 at 5:17 pm #21172Windell OskayKeymasterOkay, a suggestion. Open up the library file ( …/Documents/Arduino/libraries/alphafive/alphafive.cpp ) and on line 753, make the following change: From:Wire.write(0); // start at register 0To:Wire.write((uint8_t) 0); // start at register 0Please let me know if that fixes it.February 6, 2013 at 11:39 am #21173eroon26ParticipantWow, thanks, that fixed it, but I’ve realized that my Arduino is 1.0, which was probably why this happened. I have updated Arduino to 1.0.3, and rolled back to the origianal alphafive.cpp, it works perfect, too.Thanks for your help!February 6, 2013 at 1:29 pm #21174eroon26ParticipantSorry for being trouble, but I’m getting the same error as what’s on this thread (http://forum.evilmadscientist.com/discussion/comment/406#Comment_406) for the AlphaClock.ino, even though the libraries seem to be installed correctly, I can see Time and alphafive from Sketch > Import Library… February 6, 2013 at 1:33 pm #21175Windell OskayKeymasterPerhaps you could try replacing your Time library and then restarting, in case something has gone wrong with it, or it’s an older version. If you’re getting the exact same error– indicating that the Time library is not installed –there has to be something wrong with that library or its installation. 
- 
		AuthorPosts
- You must be logged in to reply to this topic.
 
 
 
				 
 
				 
 
