|
|
(4 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| {{NoTitle}}
| | #REDIRECT [[Language - JavaScript]] |
| {{Language_-_JavaScript_Dev_Environment_Table}}
| |
| {|
| |
| |style="vertical-align:middle; width: 60%;"|
| |
| <font size=6>'''Language - JavaScript'''
| |
| | |
| '''In-Browser'''</font>
| |
| | |
| Welcome to using Phidgets with Javascript! By using Javascript, you will have access to the complete Phidget22 API, including events.
| |
| | |
| Running your JavaScript program in a browser is accessible and can be done in Windows, macOS, or Linux.
| |
| |{{TOC limit|2}}
| |
| |}
| |
| | |
| ==Install Phidget Drivers==
| |
| Before getting started with the guides below, ensure you have the following components installed on your machine:
| |
| | |
| * You will need the Phidgets drivers installed (choose your OS):
| |
| ** [[OS_-_Windows#Quick_Downloads|Windows Drivers]]
| |
| ** [[OS_-_macOS#Quick_Downloads|macOS Drivers]]
| |
| ** [[OS_-_Linux#Quick_Downloads|Linux Drivers]]
| |
| | |
| == Use Our Examples ==
| |
| One of the best ways to start programming with Phidgets is to use our example code as a guide:
| |
| * [{{SERVER}}?view=code_samples&lang=JavaScript&os=Browser JavaScript Browser Examples]
| |
| | |
| == Editing the Examples ==
| |
| | |
| == Write Code ==
| |
| | |
| == Setting up a New Project ==
| |
| | |
| == Further Reading ==
| |
| [[Phidget Programming Basics]] - Here you can find the basic concepts to help you get started with making your own programs that use Phidgets.
| |
| | |
| [[Data Interval/Change Trigger]] - Learn about these two properties that control how much data comes in from your sensors.
| |
| | |
| [[Using Multiple Phidgets]] - It can be difficult to figure out how to use more than one Phidget in your program. This page will guide you through the steps.
| |
| | |
| [[Polling vs. Events]] - Your program can gather data in either a polling-driven or event-driven manner. Learn the difference to determine which is best for your application.
| |
| | |
| [[Logging, Exceptions, and Errors]] - Learn about all the tools you can use to debug your program.
| |
| | |
| [[Phidget Network Server]] - Phidgets can be controlled and communicated with over your network- either wirelessly or over ethernet.
| |