![Screenshot_7 Screenshot_7](https://lh3.googleusercontent.com/-sZ5Ib11mgvg/WEE_6L2fF5I/AAAAAAAAE7k/WXzBgSJyvQ8/Screenshot_7_thumb%25255B2%25255D.png?imgmax=800)
![pixel pixel](https://lh3.googleusercontent.com/-_QUsyjDHEMI/WEE_6UCjqEI/AAAAAAAAE7o/HjhAsPBh_b8/pixel%25255B13%25255D.png?imgmax=800)
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
![Screenshot_1 Screenshot_1](https://lh3.googleusercontent.com/-0h3J8G6h3lg/WEE_7crgeII/AAAAAAAAE7w/pfHebt0fw0g/Screenshot_1_thumb%25255B2%25255D.png?imgmax=800)
![pixel[1] pixel[1]](https://lh3.googleusercontent.com/-OvEFSC16NIo/WEE_7loOHLI/AAAAAAAAE70/pcFQtF_xBfg/pixel%25255B1%25255D%25255B2%25255D.png?imgmax=800)
![pixel[2] pixel[2]](https://lh3.googleusercontent.com/-czUgSZjjGVI/WEE_8IlXumI/AAAAAAAAE74/Wqaus3LQUkM/pixel%25255B2%25255D%25255B2%25255D.png?imgmax=800)
![pixel[3] pixel[3]](https://lh3.googleusercontent.com/-BMh-eSxMcq0/WEE_8QMnfrI/AAAAAAAAE78/4HZwlFVXTtA/pixel%25255B3%25255D%25255B2%25255D.png?imgmax=800)
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
![Screenshot_2 Screenshot_2](https://lh3.googleusercontent.com/-JVzTPSuTjwI/WEE_9VOwOnI/AAAAAAAAE8E/Y1bNCFnH8xo/Screenshot_2_thumb%25255B2%25255D.png?imgmax=800)
This example shows setting up digital output HIGH at exact time of the day.
Example2
![Screenshot_3 Screenshot_3](https://lh3.googleusercontent.com/-967VSb4XBu0/WEE_-XFCQsI/AAAAAAAAE8M/s4mX6BMkNBk/Screenshot_3_thumb%25255B2%25255D.png?imgmax=800)
This example shows reading analog input from specific pin at 1 second interval
Example3
![Screenshot_4 Screenshot_4](https://lh3.googleusercontent.com/-NVUxn2hboDQ/WEE__XcPvfI/AAAAAAAAE8U/gmF30i-IV_Q/Screenshot_4_thumb%25255B2%25255D.png?imgmax=800)
![pixel[4] pixel[4]](https://lh3.googleusercontent.com/-K5sMGemP1NM/WEE__wTSmlI/AAAAAAAAE8Y/SlNFFH6r2GM/pixel%25255B4%25255D%25255B2%25255D.png?imgmax=800)
![pixel[5] pixel[5]](https://lh3.googleusercontent.com/-zEtFYgQJitE/WEFAAJq73lI/AAAAAAAAE8c/h2nKdyooWeM/pixel%25255B5%25255D%25255B2%25255D.png?imgmax=800)
This example shows setting up digital output HIGH from one block and LOW from another node.
Download Examples