| 1 |
void setup(); |
| 2 |
void loop(); |
| 3 |
break(); |
| 4 |
continue(); |
| 5 |
label: |
| 6 |
goto(label); |
| 7 |
return; |
| 8 |
if (condition1) { action1; } |
| 9 |
else if (condition2) { action2; } |
| 10 |
else if (condition3) { action3; } |
| 11 |
else { action4; } |
| 12 |
switch (variable) {} |
| 13 |
case value1: action1; break; |
| 14 |
case value2: action2; break; |
| 15 |
for (int i = 0; i < value; ++i) |
| 16 |
while (i > 0) { action; } |
| 17 |
do { action; } while ( condition ) |
| 18 |
#define |
| 19 |
#include <Wire> |
| 20 |
#include "MyLib.h" |
| 21 |
';' (точка с запятой) <- Не забывай ставить её в конце строки! |
| 22 |
{ |
| 23 |
} |
| 24 |
% |
| 25 |
* |
| 26 |
+ |
| 27 |
- |
| 28 |
= |
| 29 |
!= |
| 30 |
< |
| 31 |
<= |
| 32 |
> |
| 33 |
>= |
| 34 |
== |
| 35 |
! |
| 36 |
&& |
| 37 |
& |
| 38 |
* |
| 39 |
& |
| 40 |
<< |
| 41 |
>> |
| 42 |
^ |
| 43 |
~ |
| 44 |
%= |
| 45 |
&= |
| 46 |
*= |
| 47 |
+= |
| 48 |
-= |
| 49 |
^= |
| 50 |
++ |
| 51 |
-- |
| 52 |
digitalWrite(A1, HIGH) |
| 53 |
digitalWrite(10, LOW); |
| 54 |
pinMode(8, INPUT); |
| 55 |
pinMode(A4, OUTPUT); |
| 56 |
pinMode(9, INPUT_PULLUP); |
| 57 |
digitalWrite(LED_BUILTIN, LOW); |
| 58 |
#define LED_BUILTIN 13 |
| 59 |
while (true) { Serial.println(1); } |
| 60 |
if (condition == false) Serial.print("Hello, World!"); |
| 61 |
0 - zero |
| 62 |
1 - one |
| 63 |
2 - two |
| 64 |
3 - three |
| 65 |
4 - four |
| 66 |
5 - five |
| 67 |
6 - six |
| 68 |
7 - seven |
| 69 |
8 - eight |
| 70 |
9 - nine |
| 71 |
10 - ten |
| 72 |
11 - eleven |
| 73 |
12 - twelve |
| 74 |
Serial.begin(9600); |
| 75 |
Serial.begin(115200); |
| 76 |
unsigned int var1 = 10; |
| 77 |
unsigned long var2 = 612358932; |
| 78 |
byte red = 255; |
| 79 |
byte green = 128; |
| 80 |
byte blue = 192; |
| 81 |
int number = 1230; |
| 82 |
double pi = 3.1415; |
| 83 |
char symbol = 'A'; |
| 84 |
String name = "Vanya"; |
| 85 |
bool condition = false; |
| 86 |
float num = .21; |
| 87 |
long num = 123; |
| 88 |
word w = 10000; |
| 89 |
boolean var1 = false; |
| 90 |
short var2 = 1; |
| 91 |
size_t var3 = 5; |
| 92 |
unsigned char var3 = 'A' |
| 93 |
const int var1 = 1; |
| 94 |
static int var2 = 0; |
| 95 |
volatile byte var1 = LOW; |
| 96 |
const PROGMEM int var1 = 1231; |
| 97 |
if (sizeof(arr1) < 10) { Serial.println("small"); } |
| 98 |
byte result = digitalRead(1); |
| 99 |
int result = analogRead(A3); |
| 100 |
analogWrite(A5, 1020); |
| 101 |
delay(1000); |
| 102 |
if (millis() - prevTime) > 20) { prevTime = millis(); } |
| 103 |
delayMicroseconds(1000000); |
| 104 |
micros(); |
| 105 |
int a = min(b, 1000); |
| 106 |
int b = max(a, 1000); |
| 107 |
long number = random(10, 50); |
| 108 |
randomSeed(analogRead(A0)); |
| 109 |
tone(5, 3000, 300); |
| 110 |
noTone(5); |
| 111 |
int a = abs(b); |
| 112 |
int a = constrain(b, 0, 180); |
| 113 |
int a = map(b, 1, 50, 50, 1); |
| 114 |
int a = pow(b, 2); |
| 115 |
int a = sq(b); |
| 116 |
int a = sqrt(b); |
| 117 |
a = cos(b); |
| 118 |
a = sin(b); |
| 119 |
a = tan(b); |
| 120 |
bool condition = symbol.isAlpha(); |
| 121 |
bool condition = symbol.isAlphaNumeric(); |
| 122 |
bool condition = symbol.isAscii(); |
| 123 |
bool condition = symbol.isControl(); |
| 124 |
bool condition = symbol.isDigit(); |
| 125 |
bool condition = symbol.isGraph(); |
| 126 |
bool condition = symbol.isHexadecimalDigit(); |
| 127 |
bool condition = symbol.isLowerCase(); |
| 128 |
bool condition = symbol.isPrintable(); |
| 129 |
bool condition = symbol.isPunct(); |
| 130 |
bool condition = symbol.isSpace(); |
| 131 |
bool condition = symbol.isUpperCase(); |
| 132 |
bool condition = symbol.isWhitespace(); |
| 133 |
bit(0) == 1 |
| 134 |
bit(1) == 2 |
| 135 |
bit(2) == 4 |
| 136 |
bit(3) == 8 |
| 137 |
bitClear(number, bit_num); |
| 138 |
bitRead(number, bit_num); |
| 139 |
bitSet(number, bit_num); |
| 140 |
bitWrite(number, bit, num_to_write); |
| 141 |
highByte(number); |
| 142 |
lowByte(number); |
| 143 |
attachInterrupt(digitalPinToInterrupt(interruptPin), function, CHANGE); |
| 144 |
detachInterrupt(digitalPinToInterrupt(interruptPin)); |
| 145 |
interrupts(); |
| 146 |
noInterrupts(); |
| 147 |
Serial.available(); |
| 148 |
Serial.availableForWrite(); |
| 149 |
Serial.begin(9600); |
| 150 |
Serial.end(); |
| 151 |
Serial.find('A'); |
| 152 |
Serial.findUntil('A', 'Z'); |
| 153 |
Serial.flush(); |
| 154 |
float a = Serial.parseFloat(); |
| 155 |
int a = Serial.parseInt(); |
| 156 |
Serial.peek(); |
| 157 |
Serial.print("Hello"); |
| 158 |
Serial.println(1234); |
| 159 |
char ch = Serial.read(); |
| 160 |
Serial.readBytes(buffer, length); |
| 161 |
Serial.readBytesUntil(character, buffer, length); |
| 162 |
Serial.readString(); |
| 163 |
Serial.readStringUntil(terminator); |
| 164 |
Serial.setTimeout(100); |
| 165 |
Serial.write(10283); |
| 166 |
Stream.available(); |
| 167 |
Stream.read(); |
| 168 |
Stream.flush(); |
| 169 |
Stream.find('A'); |
| 170 |
Stream.findUntil('A', ';'); |
| 171 |
Stream.peek(); |
| 172 |
Stream.readBytes(buffer, length); |
| 173 |
Stream.readBytesUntil(character, buffer, length); |
| 174 |
Stream.readString(); |
| 175 |
Stream.readStringUntil(terminator); |
| 176 |
int a = Stream.parseInt(); |
| 177 |
float a = Stream.parseFloat(); |
| 178 |
Stream.setTimeout(50); |
| 179 |
Keyboard.begin(); |
| 180 |
Keyboard.end(); |
| 181 |
Keyboard.press('A'); |
| 182 |
Keyboard.print("ABC"); |
| 183 |
Keyboard.println("ABC"); |
| 184 |
Keyboard.release('H'); |
| 185 |
Keyboard.releaseAll(); |
| 186 |
Keyboard.write('T'); |
| 187 |
Mouse.begin(); |
| 188 |
Mouse.click(); |
| 189 |
Mouse.click(MOUSE_RIGHT); |
| 190 |
Mouse.end(); |
| 191 |
Mouse.move(xVal, yVal, wheel); |
| 192 |
Mouse.press(); |
| 193 |
Mouse.press(MOUSE_RIGHT); |
| 194 |
Mouse.release(); |
| 195 |
Mouse.release(MOUSE_RIGHT); |
| 196 |
Mouse.isPressed(MOUSE_RIGHT); |
Комментарии