Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Trying to wrap my head around converting int to ascii (itoa?). on: January 10, 2013, 11:39:41 pm
sprint-freaking-f!

Thanks Gardner!
2  Using Arduino / Programming Questions / Trying to wrap my head around converting int to ascii (itoa?). on: January 10, 2013, 10:03:51 pm
Please excuse me for being a noob:

Trying to write a clock that uses only one seven segment LED (you know, for fun), so I am trying to do a conversion from an integer supplied by minute() (from the Time library) into an array of single digits.  For instance, to convert, say 42 into an array that is like myminute[3]={'4','2'} or even better into int myminute[3]={4,2}.

I thought I had read the itoa manual correctly thinking that  itoa(minute(),myminute,3) would yield the desired affect, but not!

So, a little prodding for this old, balding perl programmer would be helpful.

Blake
Pages: [1]