Professional Documents
Culture Documents
GPM 56
GPM 56
Here’s where you declare which libraries you are using. The as
keyword lets you assign a shorter alias for them. So instead of
writing Graphics, I can write Gfx throughout this file.
This function is called by the timer, and does two things: gets
the latest value from the sensor and forces the user interface to
refresh, which causes the onUpdate() function to be called.
44 | Chapter 4: Projects