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:ExamplePseudocode: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
<div style="background-color: #f3f3f3; border-color: #1c9edb; border-width:1px; border-style: dashed;"> | <div style="background-color: #f3f3f3; border-color: #1c9edb; border-width:1px; border-style: dashed;"> | ||
<font size="2"> | <font size="2"> | ||
{| | {| class="source" | ||
|- valign="top" | |- valign="top" |
Revision as of 19:04, 27 January 2012
The examples for each device all have this general structure so you can follow along. We also have an in-depth general introduction to writing Phidget code (like open, read data, etc), as well as the {{{3}}} for specific syntax:
// ----- Event and Other Functions ----- Create any Language-Specific Functions (exception handling) Create General Attach, Detach, and Error Handling Functions:
Create Hardware-Specific Functions:
|
{{{1}}} | |
// ----- Main Code -----
Close Device Delete Device
|
{{{2}}} |