 |
-구조
. (dot)
#include
setup()
void
/* */ (multiline comment)
false
true
// (comment)
, (comma)
{} (curly braces)
CHANGE
FALLING
HIGH
INPUT
loop()
LOW
LSBFIRST
MSBFIRST
null
OUTPUT
RISING
; (semicolon)
[] (array access)
() (parentheses)
return
= (assign)
-
데이터 형
Primitive
int
unsigned int
long
unsigned long
char
unsigned char
float
double
boolean
byte
array
Composite - 문자열
String
Conversion - 변환
boolean()
byte()
char()
int()
long()
float()
Bit, byte and word handling
bit()
bitRead()
bitWrite()
lowByte()
highByte()
makeWord()
-
제어
Relational Operators -
관계연산자
< (less than)
>= (greater than or equal to)
== (equality)
<= (less than or equal to)
> (greater than)
!= (inequality)
Iteration -
반복문 제어
for()
while()
Conditionals -
조건
break
switch()
case
else
if()
Logical operators -
논리 연산자
|| (logical OR)
&& (logical AND)
! (logical NOT)
Bitwise operators -
비트 논리 연산
| (bitwise OR)
|= (bitwise OR and assign)
& (bitwise AND)
&= (bitwise AND and assign)
^ (bitwise XOR)
~ (bitwise one´s complement)
<< (bitwise bit shift left)
>> (bitwise bit shift right) |
-입출력
Pin Digital I/O - 핀
디지털 입출력
pinMode()
digitalRead()
digitalWrite()
Port Digital I/O -
포트 디지털 입출력
portMode()
portRead()
portWrite()
Pin Analog Input -핀
아나로그 입력
analogRead()
Pin PWM (Analog) Output - 아나로그
출력
analogWrite()
Time - 시간
지연
delay()
delayMicroseconds()
millis()
Pulse Input (polled) -
펄스 입력
pulseIn()
Pulse output generation- 펄스
출력발생
pulseOut()
pulseRunning()
pulseStop()
Advanced Output
shiftOut()
External Interrupts -
외부 인터럽트
attachInterrupt()
detachInterrupt()
interruptMode()
Interrupts -
인터럽트
interrupts()
noInterrupts()
|
-수
연산
Operators -
연산자
-= (subtract assign)
+ (addition)
- (minus)
% (modulo)
+= (add assign)
/ (divide)
* (multiply)
++ (increment)
-- (decrement)
Calculation -
연산
min()
max()
round()
pow()
floor()
sqrt()
abs()
constrain()
sq()
ceil()
map()
Trigonometry -삼각함수
tan()
sin()
cos()
degrees()
atan2()
radians()
Random
randomSeed()
random()
-상수
HALF_PI ( 1.57079... )
TWO_PI ( 6.28318... )
PI ( 3.14159... )
|