|
|
(35 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| [[Category:Overview]] | | [[Category:Overview]] |
| ==Language Support==
| |
|
| |
|
| We provide a variety of supported languages for using Phidgets. Each language has its own ''libraries'', which may be found on the language pages below, along with code examples and an in-depth API. | | We support a variety of programming languages, each with code samples and a detailed API to help you get started. If you're unsure which language to choose, consider [[Language - Python|Python]]. It's easy to set up and beginner friendly. |
|
| |
|
| Many languages also depend on the ''core drivers'' being installed as well. These drivers can be found on the [[#Operating System Support|operating system pages]] above.
| |
|
| |
|
| Phidgets supports the following languages. If the language you have chosen is not fully supported with examples for all products then there are some resources available for you to fill in the gaps. First we recommend you look at the API which will show you all of the functions you can use. Next, you should look at the code samples that ''are'' available in that language. Finally you should look at code samples for your device in other languages. Between those three things you should be able to piece together what you need to be doing, as always, if you run into trouble {{ContactUs|contact us}}. If you have some flexibility in what language to use, we recommend using a '''Core Language''':
| | <div class="LangTableFull"> |
| | | {|class="table-no-border" |
| {| style="border:1px solid darkgray;" cellpadding="7px;"
| | |style="text-align:center;"|[[Image:Logo-Python.png|alt=Python|link=Language - Python|120px]] |
| |-style="background: #f0f0f0" align=center | | |style="text-align:center;"|[[Image:Logo-Javascript.png|alt=JavaScript|link=Language - JavaScript|120px]] |
| ! Language || Libraries || API || Code Samples<sup>†</sup> || [[General Phidget Programming#Event Driven Code|Events]] || [[General Phidget Programming#Logic Code|Logic Code]] || Use via Direct USB* || Phidget User Base || OS Support
| | |style="text-align:center;"|[[Image:Logo-CSharp.png|alt=C#|link=Language - C Sharp|120px]] |
| | |style="text-align:center;"|[[Image:Logo-C.png|alt=C|link=Language - C|120px]] |
| | |style="text-align:center;"|[[Image:Logo-Java.png|alt=Java|link=Language - Java|120px]] |
| |- | | |- |
| | | |style="text-align:center;"| [[Language - Python|Python]] |
| |colspan="5"|'''Core Languages''' | | |style="text-align:center;"| [[Language - JavaScript|JavaScript]] |
| | |style="text-align:center;"| [[Language - C Sharp|C#]] |
| | |style="text-align:center;"| [[Language - C|C]] |
| | |style="text-align:center;"| [[Language - Java|Java]] |
| | |} |
| | {|class="table-no-border" |
| | |style="text-align:center;"|[[Image:Logo-Swift.png|alt=Swift|link=Language - Swift|120px]] |
| | |style="text-align:center;"|[[Image:Logo-ObjC.png|alt=Objective C|link=Language - Objective C|120px]] |
| | |style="text-align:center;"|[[Image:Logo-VBNet.png|alt=VB|link=Language_-_Visual_Basic|120px]] |
| | |style="text-align:center;"|[[Image:Logo-LabVIEW.png|alt=LabVIEW|link=Language - LabVIEW|120px]] |
| | |style="text-align:center;"|[[Image:Logo-MaxMSP.png|alt=Max|link=Language_-_Max|120px]] |
| |- | | |- |
| | | |style="text-align:center;"| [[Language - Swift|Swift]] |
| |[[Image:Icon-CSharp.png|alt=C Sharp|24x24px|link=Language - C Sharp]] [[Language - C Sharp|C#]]
| | |style="text-align:center;"| [[Language - Objective C|Objective C]] |
| |style="background: #f0f0ff" align=center| [[Language - C Sharp#Quick Downloads|Quick Downloads]] | | |style="text-align:center;"| [[Language - Visual Basic|VB]] |
| |style="background: #ade6ab" align=center| All Devices
| | |style="text-align:center;"| [[Language - LabVIEW|LabVIEW]] |
| |style="background: #ade6ab" align=center| All Devices
| | |style="text-align:center;"| [[Language_-_Max|Max]] |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| | |} |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]] | | </div> |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| | <div class="LangTableSmall"> |
| |style="background: #ade6ab" align=center| [[Image:Level-10.png|link=|alt=Extensive]]
| | {|class="table-no-border" |
| |style="background: #ade6ab" align=center| [[Image:Icon-Windows.png|alt=OS - Windows|24x24px|link=OS - Windows]] [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]] [[Image:Icon-Linux.png|alt=OS - Linux|24x24px|link=OS - Linux]]
| | |style="width:50px;"|[[Image:Logo-C.png|alt=C|link=Language - C|30px]]||[[Language - C|C]] |
| |-
| |
| | |
| |[[Image:Icon-C++.png|alt=C/C++|24x24px|link=Language - C/C++]] [[Language - C/C++|C/C++]]
| |
| |style="background: #f0f0ff" align=center| [[Language - C/C++#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]] | |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-10.png|link=|alt=Extensive]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-Windows.png|alt=OS - Windows|24x24px|link=OS - Windows]] [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]] [[Image:Icon-Linux.png|alt=OS - Linux|24x24px|link=OS - Linux]]
| |
| |-
| |
| | |
| |[[Image:Icon-Python.png|alt=Python|24x24px|link=Language - Python]] [[Language - Python|Python]]
| |
| |style="background: #f0f0ff" align=center| [[Language - Python#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]] | |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-07.png|link=|alt=Extensive]] | |
| |style="background: #ade6ab" align=center| [[Image:Icon-Windows.png|alt=OS - Windows|24x24px|link=OS - Windows]] [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]] [[Image:Icon-Linux.png|alt=OS - Linux|24x24px|link=OS - Linux]] | |
| |-
| |
| | |
| |[[Image:Icon-Java.png|alt=Java|24x24px|link=Language - Java]] [[Language - Java|Java]]
| |
| |style="background: #f0f0ff" align=center| [[Language - Java#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-07.png|link=|alt=Extensive]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-Windows.png|alt=OS - Windows|24x24px|link=OS - Windows]] [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]] [[Image:Icon-Linux.png|alt=OS - Linux|24x24px|link=OS - Linux]]
| |
| |- | | |- |
| | | |[[Image:Logo-CSharp.png|alt=C#|link=Language - C Sharp|30px]]||[[Language - C Sharp|C#]] |
| |[[Image:Icon-Visual Basic Net.png|alt=Visual Basic .NET|24x24px|link=Language - Visual Basic .NET]] [[Language - Visual Basic .NET|Visual Basic .NET]] | |
| |style="background: #f0f0ff" align=center| [[Language - Visual Basic .NET#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| All Devices | |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-05.png|link=|alt=Extensive]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-Windows.png|alt=OS - Windows|24x24px|link=OS - Windows]]
| |
| |- | | |- |
| | | |[[Image:Logo-Python.png|alt=Python|link=Language - Python|30px]]||[[Language - Python|Python]] |
| |[[Image:Icon-Cocoa.png|alt=Cocoa|24x24px|link=Language - Cocoa]] [[Language - Cocoa|Cocoa]] | |
| |style="background: #f0f0ff" align=center| [[Language - Cocoa#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-01.png|link=|alt=Extensive]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]]
| |
| |- | | |- |
| | | |[[Image:Logo-Java.png|alt=Java|link=Language - Java|30px]]||[[Language - Java|Java]] |
| |colspan="5"|'''Mobile Languages''' | |
| |- | | |- |
| | | |[[Image:Logo-Javascript.png|alt=JavaScript|link=Language - JavaScript|30px]]||[[Language - JavaScript|JavaScript]] |
| |[[Image:Icon-Android.png|alt=Android Java|24x24px|link=Language - Android Java]] [[Language - Android Java|Android Java]] | |
| |style="background: #f0f0ff" align=center| [[Language - Android Java#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #EFE973" align=center| InterfaceKit Only
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]] | |
| |style="background: #E28585" align=center| X
| |
| |style="background: #FFC17F" align=center| Some Devices [[Image:Icon-Android_Honeycomb.png|24px|link=Software_Overview#Honeycomb|alt=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-01.png|link=|alt=Moderate]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-Android.png|alt=OS - Android|link=OS - Android|24x24px|link=OS - Android]]
| |
| |- | | |- |
| | | |[[Image:Logo-Swift.png|alt=Swift|link=Language - Swift|30px]]||[[Language - Swift|Swift]] |
| |[[Image:Icon-iOS.png|alt=iOS|24x24px|link=Language - iOS]] [[Language - iOS|iOS]] | |
| |style="background: #f0f0ff" align=center| [[Language - iOS#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #EFE973" align=center| InterfaceKit Only
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #E28585" align=center| X
| |
| |style="background: #ade6ab" align=center| [[Image:Level-01.png|link=|alt=Moderate]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-iOS.png|alt=OS - iOS|link=OS - iOS|24x24px|link=OS - iOS]]
| |
| |- | | |- |
| | | |[[Image:Logo-ObjC.png|alt=Objective C|link=Language - Objective C|30px]]||[[Language - Objective C|Objective C]] |
| |colspan="5"|'''Other Languages''' | |
| |- | | |- |
| | | |style="width:50px;"|[[Image:Logo-VBNet.png|alt=VB|link=Language_-_Visual_Basic|30px]]||[[Language - Visual Basic|VB]] |
| |[[Image:Icon-LabVIEW.png|alt=LabVIEW|24x24px|link=Language - LabVIEW]] [[Language - LabVIEW|LabVIEW]]
| |
| |style="background: #f0f0ff" align=center| [[Language - LabVIEW#Quick Downloads|Quick Downloads]]
| |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]] | |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-04.png|link=|alt=Moderate]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-Windows.png|alt=OS - Windows|24x24px|link=OS - Windows]] | |
| |- | | |- |
| | | |[[Image:Logo-LabVIEW.png|alt=LabVIEW|link=Language - LabVIEW|30px]]||[[Language - LabVIEW|LabVIEW]] |
| |[[Image:Icon-MaxMSP.png|24x24px|alt=Max/MSP|link=Language - Max/MSP]] [[Language - Max/MSP|Max/MSP]] | |
| |style="background: #f0f0ff" align=center| [[Language - Max/MSP#Quick Downloads|Quick Downloads]] | |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| All Devices
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Checkmark.png|link=]]
| |
| |style="background: #ade6ab" align=center| [[Image:Level-01.png|link=|alt=Moderate]]
| |
| |style="background: #ade6ab" align=center| [[Image:Icon-Windows.png|alt=OS - Windows|24x24px|link=OS - Windows]] [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]]
| |
| |- | | |- |
| | | |[[Image:Logo-MaxMSP.png|alt=Max|link=Language_-_Max|30px]]||[[Language_-_Max|Max]] |
| |} | | |} |
| <nowiki>*</nowiki> A direct USB connection would be plugging the Phidget into a USB port and using it locally. This is the typical way to use a Phidget. However, some platforms (such as the iPhone platform) do not have USB ports and hence can only use a Phidget over a network, via the [[Phidget WebService]].
| | </div> |
| | |
| <sup>†</sup> Most languages have code samples for all Phidgets, but some have only some devices (visit the language page to learn which ones), and some only have an Interface Kit example. The Phidget Interface Kit is a common Phidget which provides an interface with analog sensors, digital input, and digital output. So, when we choose which examples to write, the Interface Kit is often at the top of our customer's lists.
| |
| | |
| <span id="Honeycomb">[[Image:Icon-Android_Honeycomb.png|24px|link=]]</span>Android Honeycomb Version 3.1 or Higher Only
| |