Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Converting a String to Long on: December 06, 2012, 06:46:15 am
When I try to use toInt() it returns 0.

colourString = "0xFF0000";
ledStripStatus[0]=colourString.toInt();

... where colourString is a String and ledStripStatus Long Array.  Sorry for not understanding this too well.  I'm quite new to Processing and I'm still learning the syntax for it all.

Thanks,
LiveItNerd
2  Using Arduino / Programming Questions / Re: Converting a String to Long on: December 06, 2012, 01:22:03 am
Sweet.  Thanks!  I tried all of them but I get this instead.

error: cannot convert 'String' to 'const char*' for argument '1' to 'long unsigned int strtoul(const char*, char**, int)'
3  Using Arduino / Programming Questions / Converting a String to Long on: December 06, 2012, 01:10:58 am
Hi,

I'm writing a web interface to control some WS2801 LED's and am wanting to convert string to long.  The code I have takes a string in the format "0xFFDD00" and needs to be put in to the following line:-
ledStripStatus[0] = 0xFFDD00;

How can I get this converted to be done?


Thanks,
LiveItNerd
4  Using Arduino / Programming Questions / Getting additional parameters from DHCP on: June 16, 2012, 01:58:02 am
Hi,

While being rather new to the Arduino I'm really enjoying my Arduino Duemilanove and Wiznet Ethernet shield.  I've managed to get a few things working by going through the examples and other peoples code and it's great.

I'm now looking to get a bit more creative with it and build a nice little NTP clock like alot of others but I was hoping to get details like the UTC offset and NTP server IP from DHCP.  Is this possible?


Thanks,
LiveItNerd
Pages: [1]