2009-06-01 19:10:56 +02:00
|
|
|
# LITERAL1 specifies constants
|
2009-05-31 17:53:33 +02:00
|
|
|
|
2009-06-01 19:10:56 +02:00
|
|
|
HIGH LITERAL1 Constants
|
|
|
|
LOW LITERAL1 Constants
|
|
|
|
INPUT LITERAL1 Constants
|
2012-01-02 20:20:28 +01:00
|
|
|
INPUT_PULLUP LITERAL1 Constants
|
2009-06-01 19:10:56 +02:00
|
|
|
OUTPUT LITERAL1 Constants
|
|
|
|
DEC LITERAL1 Serial_Print
|
|
|
|
BIN LITERAL1 Serial_Print
|
|
|
|
HEX LITERAL1 Serial_Print
|
|
|
|
OCT LITERAL1 Serial_Print
|
|
|
|
PI LITERAL1
|
|
|
|
HALF_PI LITERAL1
|
|
|
|
TWO_PI LITERAL1
|
|
|
|
LSBFIRST LITERAL1 ShiftOut
|
|
|
|
MSBFIRST LITERAL1 ShiftOut
|
|
|
|
CHANGE LITERAL1 AttachInterrupt
|
|
|
|
FALLING LITERAL1 AttachInterrupt
|
|
|
|
RISING LITERAL1 AttachInterrupt
|
|
|
|
DEFAULT LITERAL1 AnalogReference
|
|
|
|
EXTERNAL LITERAL1 AnalogReference
|
2010-07-10 23:07:51 +02:00
|
|
|
INTERNAL LITERAL1 AnalogReference
|
|
|
|
INTERNAL1V1 LITERAL1 AnalogReference
|
|
|
|
INTERNAL2V56 LITERAL1 AnalogReference
|
2009-05-31 17:53:33 +02:00
|
|
|
|
2009-06-01 19:10:56 +02:00
|
|
|
# KEYWORD1 specifies datatypes and C/C++ keywords
|
2009-05-31 17:53:33 +02:00
|
|
|
|
2009-06-01 19:10:56 +02:00
|
|
|
boolean KEYWORD1 BooleanVariables
|
2009-10-24 00:40:47 +02:00
|
|
|
break KEYWORD1 Break
|
2009-06-01 19:10:56 +02:00
|
|
|
byte KEYWORD1 Byte
|
|
|
|
case KEYWORD1 SwitchCase
|
|
|
|
char KEYWORD1 Char
|
|
|
|
class KEYWORD1
|
2012-03-11 19:25:35 +01:00
|
|
|
const KEYWORD1 Const
|
2009-10-24 00:40:47 +02:00
|
|
|
continue KEYWORD1 Continue
|
2009-06-01 19:10:56 +02:00
|
|
|
default KEYWORD1 SwitchCase
|
|
|
|
do KEYWORD1 DoWhile
|
|
|
|
double KEYWORD1 Double
|
|
|
|
else KEYWORD1 Else
|
|
|
|
false KEYWORD1 Constants
|
|
|
|
float KEYWORD1 Float
|
|
|
|
for KEYWORD1 For
|
|
|
|
if KEYWORD1 If
|
|
|
|
int KEYWORD1 Int
|
|
|
|
long KEYWORD1 Long
|
|
|
|
new KEYWORD1
|
2009-05-31 17:53:33 +02:00
|
|
|
null KEYWORD1
|
2009-06-01 19:10:56 +02:00
|
|
|
private KEYWORD1
|
2009-05-31 17:53:33 +02:00
|
|
|
protected KEYWORD1
|
|
|
|
public KEYWORD1
|
2009-06-01 19:10:56 +02:00
|
|
|
return KEYWORD1 Return
|
|
|
|
short KEYWORD1
|
|
|
|
signed KEYWORD1
|
2010-07-27 23:29:58 +02:00
|
|
|
static KEYWORD1 Static
|
|
|
|
String KEYWORD1 String
|
2009-06-01 19:10:56 +02:00
|
|
|
switch KEYWORD1 SwitchCase
|
2009-05-31 17:53:33 +02:00
|
|
|
this KEYWORD1
|
|
|
|
throw KEYWORD1
|
|
|
|
try KEYWORD1
|
2009-06-01 19:10:56 +02:00
|
|
|
true KEYWORD1
|
|
|
|
unsigned KEYWORD1
|
|
|
|
void KEYWORD1 Void
|
|
|
|
while KEYWORD1 While
|
|
|
|
word KEYWORD1 Word
|
2009-05-31 17:53:33 +02:00
|
|
|
|
2009-06-01 19:10:56 +02:00
|
|
|
# operators aren't highlighted, but may have documentation
|
2009-05-31 17:53:33 +02:00
|
|
|
|
2009-06-01 19:10:56 +02:00
|
|
|
+= IncrementCompound
|
|
|
|
+ Arithmetic
|
2009-05-31 17:53:33 +02:00
|
|
|
[] arrayaccess
|
|
|
|
= assign
|
2009-06-01 19:10:56 +02:00
|
|
|
& BitwiseAnd
|
|
|
|
| BitwiseAnd
|
|
|
|
,
|
|
|
|
// Comments
|
|
|
|
?:
|
|
|
|
{} Braces
|
|
|
|
-- Increment
|
|
|
|
/ Arithmetic
|
|
|
|
/* Comments
|
2009-05-31 17:53:33 +02:00
|
|
|
. dot
|
2009-06-01 19:10:56 +02:00
|
|
|
==
|
2009-05-31 17:53:33 +02:00
|
|
|
< greaterthan
|
|
|
|
<= greaterthanorequalto
|
2009-06-01 19:10:56 +02:00
|
|
|
++ Increment
|
2009-05-31 17:53:33 +02:00
|
|
|
!= inequality
|
2009-06-01 19:10:56 +02:00
|
|
|
<< Bitshift
|
2009-05-31 17:53:33 +02:00
|
|
|
< lessthan
|
|
|
|
<= lessthanorequalto
|
2009-06-01 19:10:56 +02:00
|
|
|
&& Boolean
|
|
|
|
! Boolean
|
|
|
|
|| Boolean
|
|
|
|
- Arithmetic
|
|
|
|
% Modulo
|
|
|
|
* Arithmetic
|
2009-05-31 17:53:33 +02:00
|
|
|
() parentheses
|
2009-06-01 19:10:56 +02:00
|
|
|
>> Bitshift
|
|
|
|
; SemiColon
|
|
|
|
-= IncrementCompound
|
|
|
|
|
|
|
|
# these are datatypes, but we've also defined functions to cast to them
|
|
|
|
|
|
|
|
boolean KEYWORD2 boolean_
|
|
|
|
byte KEYWORD2 byte_
|
|
|
|
char KEYWORD2 char_
|
|
|
|
float KEYWORD2 float_
|
|
|
|
int KEYWORD2 int_
|
|
|
|
long KEYWORD2 long_
|
|
|
|
word KEYWORD2 word_
|
|
|
|
|
|
|
|
# KEYWORD2 specifies methods and functions
|
|
|
|
|
|
|
|
abs KEYWORD2 Abs
|
|
|
|
acos KEYWORD2 ACos
|
|
|
|
asin KEYWORD2 ASin
|
|
|
|
atan KEYWORD2 ATan
|
|
|
|
atan2 KEYWORD2 ATan2
|
|
|
|
ceil KEYWORD2 Ceil
|
|
|
|
constrain KEYWORD2 Constrain
|
|
|
|
cos KEYWORD2 Cos
|
|
|
|
degrees KEYWORD2
|
|
|
|
exp KEYWORD2 Exp
|
|
|
|
floor KEYWORD2 Floor
|
|
|
|
log KEYWORD2 Log
|
|
|
|
map KEYWORD2 Map
|
|
|
|
max KEYWORD2 Max
|
|
|
|
min KEYWORD2 Min
|
|
|
|
radians KEYWORD2
|
|
|
|
random KEYWORD2 Random
|
|
|
|
randomSeed KEYWORD2 RandomSeed
|
|
|
|
round KEYWORD2
|
|
|
|
sin KEYWORD2 Sin
|
|
|
|
sq KEYWORD2 Sq
|
|
|
|
sqrt KEYWORD2 Sqrt
|
|
|
|
tan KEYWORD2 Tan
|
|
|
|
|
2009-07-15 00:07:37 +02:00
|
|
|
bitRead KEYWORD2 BitRead
|
|
|
|
bitWrite KEYWORD2 BitWrite
|
|
|
|
bitSet KEYWORD2 BitSet
|
|
|
|
bitClear KEYWORD2 BitClear
|
|
|
|
bit KEYWORD2 Bit
|
|
|
|
highByte KEYWORD2 HighByte
|
|
|
|
lowByte KEYWORD2 LowByte
|
2009-06-01 19:10:56 +02:00
|
|
|
|
|
|
|
analogReference KEYWORD2 AnalogReference
|
|
|
|
analogRead KEYWORD2 AnalogRead
|
|
|
|
analogWrite KEYWORD2 AnalogWrite
|
|
|
|
attachInterrupt KEYWORD2 AttachInterrupt
|
|
|
|
detachInterrupt KEYWORD2 DetachInterrupt
|
|
|
|
delay KEYWORD2 Delay
|
|
|
|
delayMicroseconds KEYWORD2 DelayMicroseconds
|
|
|
|
digitalWrite KEYWORD2 DigitalWrite
|
|
|
|
digitalRead KEYWORD2 DigitalRead
|
|
|
|
interrupts KEYWORD2
|
|
|
|
millis KEYWORD2 Millis
|
|
|
|
micros KEYWORD2 Micros
|
2010-01-09 18:43:16 +01:00
|
|
|
noInterrupts KEYWORD2 NoInterrupts
|
|
|
|
noTone KEYWORD2 NoTone
|
2009-06-01 19:10:56 +02:00
|
|
|
pinMode KEYWORD2 PinMode
|
|
|
|
pulseIn KEYWORD2 PulseIn
|
2010-08-12 00:59:00 +02:00
|
|
|
shiftIn KEYWORD2 ShiftIn
|
2009-06-01 19:10:56 +02:00
|
|
|
shiftOut KEYWORD2 ShiftOut
|
2010-01-09 18:43:16 +01:00
|
|
|
tone KEYWORD2 Tone
|
2009-06-01 19:10:56 +02:00
|
|
|
|
2009-12-18 17:25:28 +01:00
|
|
|
Serial KEYWORD3 Serial
|
|
|
|
Serial1 KEYWORD3 Serial
|
|
|
|
Serial2 KEYWORD3 Serial
|
|
|
|
Serial3 KEYWORD3 Serial
|
2009-06-01 19:10:56 +02:00
|
|
|
begin KEYWORD2 Serial_Begin
|
2009-12-23 01:01:36 +01:00
|
|
|
end KEYWORD2 Serial_End
|
2010-07-05 01:31:55 +02:00
|
|
|
peek KEYWORD2 Serial_Peek
|
2009-06-01 19:10:56 +02:00
|
|
|
read KEYWORD2 Serial_Read
|
|
|
|
print KEYWORD2 Serial_Print
|
|
|
|
println KEYWORD2 Serial_Println
|
|
|
|
available KEYWORD2 Serial_Available
|
|
|
|
flush KEYWORD2 Serial_Flush
|
2011-08-17 20:16:47 +02:00
|
|
|
setTimeout KEYWORD2
|
|
|
|
find KEYWORD2
|
|
|
|
findUntil KEYWORD2
|
|
|
|
parseInt KEYWORD2
|
|
|
|
parseFloat KEYWORD2
|
|
|
|
readBytes KEYWORD2
|
|
|
|
readBytesUntil KEYWORD2
|
2009-06-01 19:10:56 +02:00
|
|
|
|
2012-04-09 15:00:48 +02:00
|
|
|
# USB-related keywords
|
|
|
|
|
|
|
|
Keyboard KEYWORD3
|
|
|
|
Mouse KEYWORD3
|
|
|
|
press KEYWORD2
|
|
|
|
release KEYWORD2
|
|
|
|
releaseAll KEYWORD2
|
|
|
|
accept KEYWORD2
|
|
|
|
click KEYWORD2
|
|
|
|
move KEYWORD2
|
|
|
|
isPressed KEYWORD2
|
|
|
|
|
2009-06-01 19:10:56 +02:00
|
|
|
setup KEYWORD3 Setup
|
2009-07-15 00:07:37 +02:00
|
|
|
loop KEYWORD3 Loop
|