This is a frequently used block in magicblocks. There are a few functions of this block
- Trigger something once
- Trigger something periodically
- Input text once
- Input text periodically
- Get time stamp
- Trigger task on a specific time
- Manual trigger from the playground( As shown in figure)
Variables
Payload
payload is the output type of the inject block. It can be either
- timestamp
- string
- blank
repeat is the triggering mode of the inject block. It can be either
- none
- interval
- interval between times
- at a specific time
Name is for identification purpose of the block
Example1
This example shows setting up digital output HIGH at exact time of the day.
Example2
This example shows reading analog input from specific pin at 1 second interval
Example3
This example shows setting up digital output HIGH from one block and LOW from another node.
Download Examples