|
|
(217 intermediate revisions by 10 users not shown) |
Line 1: |
Line 1: |
| Phidgets’ philosophy is that you do not have to be an electrical engineer in order to do projects that use devices like sensors, motors, motor controllers, and interface boards. All you need to know is how to program.
| | #REDIRECT [[Phidget Programming Basics]] |
| | |
| We have developed a complete set of Application Programming Interfaces (API) that are supported for many different [[#Operating System Support|operating systems]], and which can be used through many different [[#Language Support | programming languages]].
| |
| | |
| We suggest starting with the ''Getting Started'' guide [[Device List|for your device]]. This will help you get a basic example running to check your hardware and drivers.
| |
| | |
| The next step would be to choose your [[#Operating System Support|operating system below]], and from there [[#Language Support|choose a language]], learn about [[General Phidget Programming|how to write code for your Phidget]], and get API references for your [[#Language Support|programming language]].
| |
| | |
| The APIs are covered in more detail in the [[General API|API common to all devices]] and the API that pertains to your [[Device List| specific device]].
| |
| | |
| == Operating System Support ==
| |
| | |
| This section describes how to set up your operating system to write and run code for Phidgets. Getting your operating system ready is the first step toward writing code.
| |
| | |
| On the pages linked below, you will find the '''core drivers''' and libraries for using your Phidget either '''directly''' through USB or '''remotely''' via the [[Phidget Webservice]].
| |
| | |
| The Webservice controls a Phidget by connecting to a host computer and its Phidget over a network. So, the host computer must be able to run a Phidget directly.
| |
| | |
| The Windows and Mac OSX pages also include a graphical program to view and run basic tests on your Phidget. On other operating systems, only code is available, although ready-to-compile examples are provided for [[#Language Support|every language]].
| |
| | |
| Phidgets can '''run directly''' or be '''driven remotely''' on these operating systems:
| |
| | |
| * [[OS - Windows|Windows]]
| |
| * [[OS - Mac OSX|Mac OSX]]
| |
| * [[OS - Linux|Linux]] (Kernel 2.6+)
| |
| * [[OS - Windows CE|Windows CE]] ??
| |
| * [[OS - Android|Android]] (3.1 and above)
| |
| * [[Phidget SBC]]
| |
| | |
| Phidgets can be only '''driven remotely''' by these operating systems:
| |
| | |
| * [[OS - iOS|IPhone iOS]]
| |
| * [[OS - Android|Android]] (3.0 and earlier)
| |
| | |
| == Language Support ==
| |
| | |
| This section outlines what languages you can write code in for Phidgets and how to set them up.
| |
| | |
| 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. 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 can be controlled using our [[General Phidget Programming|high level API]] which allows for either an [[General Phidget Programming#Event Driven Code|event driven]] style of code design, or by traditional [[General Phidget Programming#Logic Code|logic code]]. All languages below support logic code. Most - but not all - languages support our complete API, which includes support for event-driven design.
| |
| | |
| If you are flexible on what language you can use, we suggest choosing a language which supports event-driven code.
| |
| | |
| When you visit the page below for your language, make sure you download:
| |
| #Software libraries
| |
| #Example code
| |
| #The specific API
| |
| | |
| Phidgets have libraries to support '''event driven design''' in the following languages:
| |
| | |
| * [[Language - Adobe Director]]
| |
| * [[Language - Android Java|Android Java]]
| |
| * [[Language - Applescript]]
| |
| * [[Language - AutoIt]]
| |
| * [[Language - C/C++|C/C++]]
| |
| * [[Language - C Sharp|C Sharp]]
| |
| * [[Language - C Sharp (.NET Compact Framework)|C Sharp (.NET)]]
| |
| * [[Language - Cocoa]]
| |
| * [[Language - Cocoa Touch]]
| |
| * [[Language - Delphi]]
| |
| * [[Language - Flash AS3]]
| |
| * [[Language - Flex AS3]]
| |
| * [[Language - iOS]]
| |
| * [[Language - Java|Java]]
| |
| * [[Language - LabVIEW]]
| |
| * [[Language - LiveCode]]
| |
| * [[Language - Max/MSP]]
| |
| * [[Language - Microsoft Robotics Studio]]
| |
| * [[Language - Python|Python]]
| |
| * [[Language - REALBasic]]
| |
| * [[Language - Simulink]]
| |
| * [[Language - Visual Basic .NET]]
| |
| * [[Language - Visual Basic 6.0]]
| |
| * [[Language - Visual Basic for Applications]]
| |
| * [[Language - Visual Basic Script]]
| |
| | |
| | |
| Phidgets have libraries to support only '''logic code''' in the following languages:
| |
| | |
| * [[Language - MATLAB|MATLAB]]
| |
| * ...
| |