Language - C: Difference between revisions

From Phidgets Support
(Created page with 'Preamble about the language and its general strengths and weaknesses. ==Assessment for use with Phidgets== Our honest opinion on how well this language is suited to controlling …')
 
No edit summary
(588 intermediate revisions by 12 users not shown)
Line 1: Line 1:
Preamble about the language and its general strengths and weaknesses.
__NOTOC__
[[Category:Language]]
We provide support for the C language in all major operating systems. We also provide instructions on how to get your project started in a number of common development environments. Select your operating system and preferred development environment below, and follow the instructions to get your project running with Phidgets.


==Assessment for use with Phidgets==
If you do not know which development environment you want to use, or your development environment of choice is not listed, we recommend starting with GCC as the simplest path to getting your code running.
Our honest opinion on how well this language is suited to controlling Phidgets. If it is a poor choice, suggest and link similar (better) languages.


==Support==
Once you have set up your development environment to run with Phidgets, we recommend you follow our guide on [[Phidget Programming Basics]]. The guide will showcase the fundamentals of programming with Phidgets, with examples in C.
We provide [[Levels of Support|full support]] to C and C++.


==Restrictions==
==Choose Your Development Environment:==
In this section, list any restrictions or limitations that this particular language may impose. For example, incompatibility with certain operating systems.


==Development Environments and Compilers==
{{Language_-_C_Dev_Environment_Table}}


Describe each major compiler and notable differences or important information. (eg. framework versions) If there are known issues/workarounds mention them and link to the corresponding issue at the bottom of the page.
== Quick Downloads ==


==Drivers, Libraries and Resources==
If you already know what you're doing and just need the files, you can find them all below.
Before you can run your program, you need to set up the proper environment and get the necessary files off the Phidgets website.
Visit the drivers section at www.phidgets.com and get the latest:
* [http://www.phidgets.com/drivers.php Phidget Framework]
You will need the Phidget Framework to use and to program with Phidgets. We also recommend that you download the following reference materials:
* [http://www.phidgets.com/documentation/Phidget21_C_Doc.zip API Manual]
* [http://www.phidgets.com/documentation/web/cdoc/index.html API Reference]
* Sample Code:
**[http://www.phidgets.com/downloads/examples/VCpp_2.1.8.20110615.zip Windows]
**[http://www.phidgets.com/downloads/examples/phidget21-c-examples_2.1.8.20110615.tar.gz Linux/MacOS]
* Phidget21 Library:
**[http://www.phidgets.com/downloads/libraries/phidget21-x86_2.1.8.20110615.zip x86]
**[http://www.phidgets.com/downloads/libraries/phidget21-x64_2.1.8.20110615.zip x64]
**[http://www.phidgets.com/downloads/libraries/phidget21bcc_2.1.8.20110615.zip Borland C++]
* You can find a high level discussion about programming with Phidgets in general on the [[General API]] page.
* The [[Device Functionality]] page explains the general operational information for your device.  


You may want to have these pages open while working through these instructions.
=== Documentation ===


==Getting Started==
*{{Phidget22API}}  (select C from the drop-down menu)
Here we provide a basic setup guide and code samples to start a project from scratch.


==Building your Project==
=== Example Code ===
Describe the different ways a project could be built using this language.


==Common Problems and Solutions/Workarounds==
*{{SampleCode|C|C Examples}}
Here you can put various frequent problems and our recommended solutions.
 
===Libraries===
 
{{AllQuickDownloads}}

Revision as of 22:13, 28 February 2019

We provide support for the C language in all major operating systems. We also provide instructions on how to get your project started in a number of common development environments. Select your operating system and preferred development environment below, and follow the instructions to get your project running with Phidgets.

If you do not know which development environment you want to use, or your development environment of choice is not listed, we recommend starting with GCC as the simplest path to getting your code running.

Once you have set up your development environment to run with Phidgets, we recommend you follow our guide on Phidget Programming Basics. The guide will showcase the fundamentals of programming with Phidgets, with examples in C.

Choose Your Development Environment:

C Development Environments
OS - Windows Windows

C VS WIN.png C VS WIN on.png

C GCC WIN.png C GCC WIN on.png

C CB WIN.png C CB WIN on.png

OS - macOS macOS

C GCC MAC.png C GCC MAC on.png

OS - Linux Linux

C GCC LNX.png C GCC LNX on.png

OS - Linux Phidget SBC Linux

C GCC SBC.png C GCC SBC on.png

Quick Downloads

If you already know what you're doing and just need the files, you can find them all below.

Documentation

Example Code

Libraries