|
Digital
Digital
Input Agent
Use the
Digital Input Agent to get a digital signal from the outside
world and make it available to the rest of your application.
Set a Digital Input to a pin on the microcontroller that is
connected to a digital sensor or other digital device. When
the Digital Input is connected to a device through the pin,
its value becomes the same as the device's. Read the Digital
Input to get the value of the device.
Use an
Event Component to detect these self-explanatory events from
the Digital Input:
Detect
these Analog Input Agent events using the Event Component:
^ Top
Digital
Output Agent
Use the
Digital Output Agent to produce a digital signal from your
microcontroller. Like the Digital Input, you attach the Digital
Output to a pin that is connected to a digital device such
as a switch. When your application changes the value of the
Digital Output, the Digital Output will flip the switch accordingly.
Use an Event Component to detect these events from the Digital
Output:
The Digital
Output can perform these Jobs:
- Set
to: An assignment Job, the Digital Output's value will become
the value specified.
- Toggle:
The Digital Output Agent will switch states (if it's ON,
it'll turn OFF; if it's OFF, it'll turn ON).
^ Top
Digital
Variable
The Digital
Variable Component is used to store a digital value. Set the
value manually using a Visual Control such as a Switch or
periodically sample value from any other Digital Component
source.
Create
"smart-switch" behavior by adding a delay before
the Digital Variable changes state simply by checking a checkbox
and setting the length of the delay.
Use an
Event Component to detect these events from the Digital Variable:
The Digital
Variable can perform these Jobs:
- Set
to: An assignment Job, the Digital Variable's value will
become the value specified.
- Toggle:
The Digital Variable will switch states (if it's ON, it'll
turn OFF; if it's OFF, it'll turn ON).
^ Top
Digital
Operator
The Digital
Operator Component is used to perform Boolean operations on
any two Digital Components. The state of the Digital Operator
is the output of the operation. Create state logic using Digital
Operator Components: If the valve is closed AND the switch
is off, shut down the pump, for example.
Select any of the following operations: AND, OR, XOR, NOR,
and NAND. Invert either of the operands simply by clicking
a check box.
Use an
Event Component to detect these events from the Digital Operator:
^ Top
Usful
Link: microCommander
Visual Controls
|