Page 1 of 1

Coding help...

Posted: Sun Aug 20, 2017 3:44 pm
by 89delta
So I'm looking to be able to set the longitude and latitude in our sunlocation code we have.

Sl.Init(-21.285833, 150.999722);

How would I be able to do that? Would it be something like this:

Int long=0;
Int long2=0;
For something like this:

So.Init(long.long2, 150.999722);

Thanks for the help.

Sent from my SM-N920T using Tapatalk

Re: Coding help...

Posted: Mon Aug 21, 2017 3:45 am
by cosmith71
Use a float.

Code: Select all

float variablename = 123.4567
https://www.arduino.cc/en/Reference/Float

Alternatively, if you don't need a variable, just change the number in the Sl.Init to whatever location you like.