Powered by Blogger.

Friday, December 2, 2016

Tag: ,

Lesson 12: Playground-Inject Block

Screenshot_7
pixel
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
pixel[1]
pixel[2]
pixel[3]
Payload
payload is the output type of the inject block. It can be either
  • timestamp
  • string
  • blank
Repeat
repeat is the triggering mode of the inject block. It can be either
  • none
  • interval
  • interval between times
  • at a specific time
Name
Name is for identification purpose of the block

Example1

Screenshot_2
This example shows setting up digital output HIGH at exact time of the day.

Example2

Screenshot_3
This example shows reading analog input from specific pin at 1 second interval

Example3

Screenshot_4
pixel[4]
pixel[5]
This example shows setting up digital output HIGH from one block and LOW from another node.
 
Download Examples