Programming Resources: Difference between revisions

From Phidgets Support
No edit summary
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Overview]]
[[Category:Overview]]
==Language Support==
==Language Support==
We provide support for a variety of programming languages. Each language has code samples for you to use as well as an in-depth API for you to reference. If you aren't sure which language to use, we recommend using a ''Core Language'':
We provide support for a variety of programming languages. Each language has code samples for you to use as well as an in-depth API for you to reference. If you aren't sure which language to use, we recommend using [[Language - Python|Python]], because it is quick to learn.


{| style="border:1px solid darkgray;" cellpadding="7px;"
{| style="border:1px solid darkgray;" cellpadding="7px;"
|-style="background: #f0f0f0" align=center  
|-style="background: #f0f0f0" align=center  
! Language || Libraries || Code Samples || OS Support
! Language || Libraries || Code Samples || OS Support
|-
|colspan="5"|'''Core Languages'''
|-
|-


Line 32: Line 29:
|style="background: #f0f0ff" align=center| [[Language - Java#Quick Downloads|Quick Downloads]]
|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: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="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-Android.png|alt=OS - Android|24x24px|link=OS - Android]]
|-
 
|colspan="5"|'''Other Languages'''
|-
|-


Line 52: Line 46:
|[[Image:Icon-Swift.png|alt=Cocoa|24x24px|link=Language - Swift]] [[Language - Swift|Swift]]  
|[[Image:Icon-Swift.png|alt=Cocoa|24x24px|link=Language - Swift]] [[Language - Swift|Swift]]  
|style="background: #f0f0ff" align=center| [[Language - Swift#Quick Downloads|Quick Downloads]]
|style="background: #f0f0ff" align=center| [[Language - Swift#Quick Downloads|Quick Downloads]]
|style="background: #FFC17F" align=center| Some Devices<nowiki>*</nowiki>
|style="background: #ade6ab" align=center| All Devices
|style="background: #ade6ab" align=center| [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]][[Image:Icon-iOS.png|alt=OS - iOS|link=OS - iOS|24x24px|link=OS - iOS]]
|style="background: #ade6ab" align=center| [[Image:Icon-Mac-OS.png|alt=OS - OS X|24x24px|link=OS - OS X]][[Image:Icon-iOS.png|alt=OS - iOS|link=OS - iOS|24x24px|link=OS - iOS]]
|-
|-
Line 75: Line 69:


|}
|}
<nowiki>*</nowiki> If your language does not provide a code example for your Phidget, we recommend the following:
<nowiki>*</nowiki> Objective C has examples for all devices in macOS, but only some devices in iOS. If you're developing an Objective C program for iOS, we recommend that you use the existing examples while referencing the macOS examples for the devices that don't have iOS examples.
*Reference the {{Phidget22API}} for your Phidget. The API will provide information about all the functions available to use with your Phidget.
*Take a look at the code samples that ''are'' available in your language. These will give you an idea of how to structure your code.
*Reference the code samples for your Phidget in other programming languages.

Revision as of 19:30, 4 July 2019

Language Support

We provide support for a variety of programming languages. Each language has code samples for you to use as well as an in-depth API for you to reference. If you aren't sure which language to use, we recommend using Python, because it is quick to learn.

Language Libraries Code Samples OS Support
C Sharp C# Quick Downloads All Devices OS - Windows OS - OS X OS - Linux
C C Quick Downloads All Devices OS - Windows OS - OS X OS - Linux
Python Python Quick Downloads All Devices OS - Windows OS - OS X OS - Linux
Java Java Quick Downloads All Devices OS - Windows OS - OS X OS - Linux OS - Android
javascript JavaScript Quick Downloads All Devices OS - Windows OS - OS X OS - Linux
Visual Basic .NET Visual Basic .NET Quick Downloads All Devices OS - Windows
Cocoa Swift Quick Downloads All Devices OS - OS XOS - iOS
ObjC Objective C Quick Downloads Some Devices* OS - OS XOS - iOS
LabVIEW LabVIEW Quick Downloads All Devices OS - Windows
Max/MSP Max/MSP Quick Downloads All Devices OS - Windows OS - OS X

* Objective C has examples for all devices in macOS, but only some devices in iOS. If you're developing an Objective C program for iOS, we recommend that you use the existing examples while referencing the macOS examples for the devices that don't have iOS examples.