Methods
-
hardwarestartup()
-
Required block to include the setup function and the hardwareBegin command. Blocks inside of the setup block will run sequentially one time at the beginning of the program.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
// Below is the "setup" function. It runs one time as soon as Wink turns on. You can add stuff // to this function if you want, but hardwareBegin() should always be the first code in the list. void setup(){ hardwareBegin(); //blocks go here }
-
loop()
-
Required block to include the loop function. Blocks inside of the loop block will run sequentially over and over until the Wink Bot is turned off.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
// Below is the "loop" function. This is where you'll write most of your code. Whatever is included // inside the "loop" function will run over and over until Wink runs out of power or you turn him off. void loop(){ //blocks go here }