$\large \mathtt{Arduino\ Documentation}$

1 Basic Function

$\large \mathtt{Language\ Reference}$

Id Function Description
1 int anglogRead(uint8_t pin)
2 void anglogWrite(uint8_t pin, int value) 0: on, 255: off
3 void tone(uint8_t pin, unsigned int frequency)
4 void tone(uint8_t pin, unsigned int frequency, unsigned long duration)
5 unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout) return duration of required state, if timeout, return 0

2 Serial

Id Function Description
1 Serial.begin(long baudrate)
2 Serial.end() stop Serial
3 Serial.available() number of bytes that can be read4
4 Serial.find(target) return: bool, if found, true, else false.
5 Serial.findUntil(target, terminal) target: char, terminal: end of char
6 Serial.parseFloat return the first Float in buffer
7 Serial.parseInt return the first Int in buffer
8 Serial.print(val)
9 Serial.print(val, format) format: BIN/OCT/DEC/HEX; int for float
10 Serial.read() return Char
11 Serial.readBytes(buffer, length) read bytes in buffer, read length is no more the given length
12 Serial.write(val/str) value in Ascii
13 Serial.write(buffer, length)

3 Multi-thread

$\large \mathtt{SCoop\ Lib\ Modified\ Version}​$

$\large \mathtt{SCoop\ Lib\ Official\ Version}​$

4 Useful Lib

Id Lib Description
1 DHT_sensor_library DHT11 temperature and humidity sensor
2 RTC clock module
3 IRremote Infrared communication
4 Adafruit_NeoPixel WS2812 light
5 Servo Servo
6 U8g2/U8glib OLED
7 LiquidCrystal_I2C 1602LCD
8 Blinker/Blynk

devil.