| |
Commands List - Arduino to PBASIC
Page history last edited by CTP 2 yrs ago
[PAGE IN PROGRESS TRANSFERRING TEXT TO TABLE - lines crossed out are done]
Structure
Control Structures
Further Syntax
Arithmetic Operators
plus (addition)
- (subtraction)
* (multiplication)
/ (division)
% (modulo)
Comparison Operators
== (equal to)
!= (not equal to)
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)
Boolean Operators
Bitwise Operators
Compound Operators
++ (increment)
-- (decrement)
+= (compound addition)
-= (compound subtraction)
*= (compound multiplication)
/= (compound division)
&= (compound bitwise and)
|= (compound bitwise or)
Variables
Constants
Data Types
Variable Scope & Qualifiers
Functions
Digital I/O
Analog I/O
Advanced I/O
- shiftOut(dataPin, clockPin, bitOrder, value)
- unsigned long pulseIn(pin, value)
Time
Math
Random Numbers
External Interrupts
Serial Communication
| STRUCTURE |
|
|
| Arduino |
PBASIC |
Notes |
| Control Structures |
|
|
| if |
if |
|
| if...else |
if...then...else...elsif...endif |
|
| for |
for...next |
|
| switch case |
select case |
|
| while |
|
|
| do...while |
do...while (do...until)(loop...while)(loop...until) |
|
| break |
|
|
| continue |
|
|
| return |
|
|
| Further Syntax |
|
|
| ; (semicolon) |
|
|
| {} (curly braces) |
|
|
| // (single line comment) |
|
|
| /*...*/ (multi line comment) |
|
|
| #define |
|
|
| #include |
|
|
| Arithmetic Operators |
|
|
| + (addition) |
+ |
|
| - (subtraction) |
- |
|
| * (multiplication) |
* |
|
| / (division) |
/ |
|
| % (modulo) |
// |
|
| Comparison Operators |
|
| == (equal to) |
|
|
| != (not equal to) |
|
|
| < (less than) |
|
|
| > (greater than) |
|
|
| <= (less than or equal to) |
|
|
| >= (greater than or equal to) |
|
|
| Boolean Operators |
|
|
| && (and) |
|
|
| || (or) |
|
|
| ! (not) |
|
|
| Bitwise Operators |
|
|
| & (bitwise and) |
& |
|
| | (bitwise or) |
| |
|
| ^ (bitwise xor) |
^ |
|
| ~ (bitwise not) |
~ |
|
| << (bitshift left) |
<< |
|
| >> (bitshift right) |
>> |
|
| Compound Operators |
|
|
| ++ (increment) |
|
|
| -- (decrement) |
|
|
| += (compound addition) |
|
|
| -= (compound subtraction) |
|
|
| *= (compound multiplication) |
|
|
| /= (compound division) |
|
|
| &= (compound bitwise and) |
|
|
| |= (compound bitwise or) |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
Commands List - Arduino to PBASIC
|
|
Tip: To turn text into a link, highlight the text, then click on a page or file from the list above.
|
|
|
Comments (0)
You don't have permission to comment on this page.