chipWidth()
[Graphics]
int chipWidth ();Description
Gets the width of the chip.
Parameters
None.
Returns
An integer value that represents the width of the chip in pixels.
Example Code
The code gets the width of the chip and saves it into a variable.
void setup() {
int width = chipWidth(); // gets the width of the chip
}
void loop() {
}Notes and Warnings
This function can be used to calculate relative position of graphics inside the Custom Element canvas
