Skip to content
victordiao edited this page May 1, 2016 · 9 revisions

Input and Ouput

In Mixly, there are four kinds of command:the I/O of control Pin(including digital signal and analog signal), Interrupt, Pulse length and ShiftOut.

I/O

Mixly provides I/O commands as following: set pin's signal, digital input/output, analog input/output First, we can do physical connection by signal. If the signal is digital signal, you can choose digital input and output. If analog signal, you are supposed to choose analog signal.

When you drag a block to the panel(the loop strcture), you need to choose the pin number to match the physical connection.

Interrupt

Usually, the main loop is in order execution, however, sometimes you want to interrupt and to execute another more important instruction, under this circumstance, using interrupt instruction become more essential. There are three interrupt modes you can choose:RISING, FALLING, CHANGE. RISING means the electric level becomes high from low. FALLING means the electric level becomes low from high. CHANGE means the electric level become high from low or become low from high. Take an example, when you are using RISING mode, as long as you let the electric level become high from low(by pressing button), the interrupt instruction will be executing right away. Interrupt instruction finished, the main function will be back to execute previous instructions.

Pulse length

ShiftOut

Clone this wiki locally