-
Notifications
You must be signed in to change notification settings - Fork 4
Program
AutomationDirect edited this page Jan 21, 2020
·
10 revisions

Generates an Arduino sketch with setup and loop functions.
Use a 'true/false' value to select whether you will use P1 modules in the program. Blocks placed under the 'setup' hook will complete their operations in the 'setup' phase of the Arduino program. Blocks placed under the 'loop' hook will run continuously during the 'loop' phase of the Arduino program.
CAUTION: Do not select 'true' for 'Use P1 Modules?' if your program does not use any P1 modules (see Notes below).
- If 'Use P1 Modules' is 'true', this block will attempt to run P1 module discovery. This process will hang indefinitely if there are no connected P1 modules, or if connected P1 modules have no power supplied to them. This is to ensure that P1 modules will be ready for your program if you intend to use them.
- If you do not intend to use P1 modules, set 'Use P1 modules' to 'false'.
- There may only be one Program block in the ProductivityBlocks canvas. If there is more than one of these blocks in a ProductivityBlocks program, the 'verify' and 'upload' will fail until the extra blocks are removed.