Notice: This page contains information for the legacy Phidget21 Library. Phidget21 is out of support. Bugfixes may be considered on a case by case basis. Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21. We recommend that new projects be developed against the Phidget22 Library.
|
Template:ExamplePseudocodeLogic: Difference between revisions
(Created page with "You can learn about the flow and the functions within the examples by reading about General Phidget Programming, which will walk you through the concepts in each example, reg...") |
No edit summary |
||
Line 9: | Line 9: | ||
Create Device Software Object | Create Device Software Object | ||
Open Device | Open Device | ||
Wait | Wait until Device Attachment | ||
Initialize any hardware (antennas, etc) | Initialize any hardware (antennas, etc) | ||
Loop waiting | Loop waiting on requests from user input: | ||
Get and Print various device statuses on request by input | Get and Print various device statuses on request by input | ||
Exit upon specific user input | Exit upon specific user input |
Revision as of 19:36, 14 November 2011
You can learn about the flow and the functions within the examples by reading about General Phidget Programming, which will walk you through the concepts in each example, regardless of your device or language.
The examples for each device all have this general structure so you can follow along:
Create Device Software Object
Open Device
Wait until Device Attachment
Initialize any hardware (antennas, etc)
Loop waiting on requests from user input:
Get and Print various device statuses on request by input
Exit upon specific user input
Close Device
Delete Device