Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Due compatible Time library? on: December 12, 2012, 07:55:38 am
Sorry for the delay, but yesterday I was busy with work till late.
Just compiled with your library, after translating function calls, and it seems to work correctly smiley-grin
Thank you very much.
By the way, the interface to the rtc_clock is clean and simple, very nice work.
Even if at the moment I dont use it, also the interface for the alarm:
  rtc_clock.set_alarmtime(10, 30, 0); 
  rtc_clock.attachalarm(announcement);
  void announcement(){
    ...
  }
is very clean and I love it.
Thank you again
2  Products / Arduino Due / Re: Due compatible Time library? on: December 11, 2012, 08:46:11 am
Thank you both (thank you twice Markus!).
I just downloaded the library and as soon as possible I'll compile it.
I'll keep you in touch  :-)
3  Products / Arduino Due / Due compatible Time library? on: December 10, 2012, 06:47:39 pm
Hi all,
any one know if there is a compatible Time library for Arduino Due?
What i use are:

setTime(hour,min,secs,day,mont,year)
hour()
minute()
second()

I am getting this kind of errors:

/home/deco/progetti/arduino/progetti/Arduino/libraries/Time/Time.h:15: error: conflicting declaration 'typedef long unsigned int time_t'
/home/deco/software/arduino2/arduino-1.5.1/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/sys/types.h:109: error: 'time_t' has a previous declaration as 'typedef long int time_t'

Code compiled correctly (and still compiles) on older arduino versions.
I think the error is quite easy to fix, but I dint manage to get it in about an hour.
Line numbers are not precise, I dont know why, I think some sort of preprocessor passes before gcc.

Thank you all  smiley
4  Using Arduino / Displays / Re: Conflict (solved, but wanto to share) Ethernet Shield - LCD on Arduino Mega on: May 04, 2012, 08:50:01 am
Ok! All is clear now.
Thank you very much!
5  Using Arduino / Displays / Re: Conflict (solved, but wanto to share) Ethernet Shield - LCD on Arduino Mega on: May 04, 2012, 07:34:11 am
Ok, thank you for explaining this.
But the ethernet shield is not physically connected to those pins... is that connector that there is on the center of the mega board that the ethernet shield uses? Those 6 pins marked as "ICSP"?
6  Using Arduino / Displays / Conflict (solved, but wanto to share) Ethernet Shield - LCD on Arduino Mega on: May 04, 2012, 06:12:53 am
Hi all,
first post here.
I hope this is the right place.
I had ethernet shield installed on an Arduino Mega, and wanted to add an LCD (2x16 for what it matters).
The LCD installed directly "on top" on the Ethernet Shield does not work for geometric reasons (the ethernet connector external plate touches the connectors on the LCD), and inverting LCD and Ethernet shield position obviously is not a great choice since you cannot see the LCD behind the ethernet shield...  smiley-wink
Then i connected the LCD with some wires to pins 42-44-46-48-50-52 of the Mega, so I can put the LCD where I want.
The LCD starts ok but after Ethernet.begin a number of strange characters appear on the LCD, and my LCD.print did not work anymore.
I moved the LCD on upper right digital pins (23-25-27-29-31-33) and it works correctly.
I suppose that's something related to the Ethernet shield that initializes and uses some pin in the 42-52 range, perhaps for compatibility with older boards?
I know that to get older Ethernet shield working on the Mega there was some trick involving using those pins, but I just started working with the Arduino and my knowledge is very poor.

Hope that this helps someone with my problem, or maybe that this helps fixing the problem.

I can give further details if required.

Thank you all for great community
Pages: [1]