Hi all,
In a example that i saw from adafruit there is a piece of code that states: "print.serial((int)var)".
Till this point i has never seen (int) in a serial.print, can someone explain me what it is used for?
Grateful
Hi all,
In a example that i saw from adafruit there is a piece of code that states: "print.serial((int)var)".
Till this point i has never seen (int) in a serial.print, can someone explain me what it is used for?
Grateful
It is a typecast. The developer is forcing the compiler to convert var to an int datatype.
Thanks for the explanation and fast reply