Serial communication function:
Serial.available (); //
Serial.availableForWrite (); //
Serial.begin (); //
Serial.end (); //
Serial.find (); //
Serial.findUntil (); //
Serial.flush (); //
Serial.parseFloat (); //
Serial.parseInt (); //
Serial.print (); //
Serial.println (); //
Serial.peek (); //
Serial.read (); //
Serial.write (); //
Serial.setTimeout (); //
Serial.readBytes (); //
Serial.readBytesUntil (); //
Serial.readString (); //
Serial.readStringUntil (); //
Stream.available (); //
Stream.read (); //
Stream.flush (); //
Stream.find (); //
Stream.findUntil (); //
Stream.peek (); //
Stream.readBytes (); //
Stream.readBytesUntil (); //
Stream.readString (); //
Stream.readStringUntil (); //
Stream.parseInt (); //
Stream.parseFloat (); //
Stream.setTimeout (); //
Liquid-crystal display LCD_1602 functions:
#include<LiquidCrystal.h>
LiquidCrystal LCD_1601(LCD_RS, LCD_RW, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_1602(LCD_RS, LCD_RW, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_1604(LCD_RS, LCD_RW, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_2002(LCD_RS, LCD_RW, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_2004(LCD_RS, LCD_RW, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_3202(LCD_RS, LCD_RW, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_4002(LCD_RS, LCD_RW, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_1601(LCD_RS, LCD_RW, LCD_E, LCD_DB0, LCD_DB1, LCD_DB2, LCD_DB3, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_1602(LCD_RS, LCD_RW, LCD_E, LCD_DB0, LCD_DB1, LCD_DB2, LCD_DB3, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_1604(LCD_RS, LCD_RW, LCD_E, LCD_DB0, LCD_DB1, LCD_DB2, LCD_DB3, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_2002(LCD_RS, LCD_RW, LCD_E, LCD_DB0, LCD_DB1, LCD_DB2, LCD_DB3, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_2004(LCD_RS, LCD_RW, LCD_E, LCD_DB0, LCD_DB1, LCD_DB2, LCD_DB3, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_3202(LCD_RS, LCD_RW, LCD_E, LCD_DB0, LCD_DB1, LCD_DB2, LCD_DB3, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LiquidCrystal LCD_4002(LCD_RS, LCD_RW, LCD_E, LCD_DB0, LCD_DB1, LCD_DB2, LCD_DB3, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7); //
LCD_1602.begin(); //
|
|
LCD_1602.clear(); //
LCD_1602.home(); //
LCD_1602.setCursor(); //
LCD_1602.write(); //
LCD_1602.print(); //
LCD_1602.cursor(); //
LCD_1602.noCursor(); //
LCD_1602.blink(); //
LCD_1602.noBlink(); //
LCD_1602.display(); //
LCD_1602.noDisplay(); //
LCD_1602.scrollDisplayLeft(); //
LCD_1602.scrollDisplayRight(); //
LCD_1602.autoscroll(); //
LCD_1602.noAutoscroll(); //
LCD_1602.setRowOffsets(); //
LCD_1602.leftToRight(); //
LCD_1602.rightToLeft(); //
LCD_1602.createChar(); //
LCD_1602.command(); //
LCD_RS = MCU_PIN; //
LCD_RW = MCU_PIN; //
LCD_E = MCU_PIN; //
LCD_DB0 = MCU_PIN; //
LCD_DB1 = MCU_PIN; //
LCD_DB2 = MCU_PIN; //
LCD_DB3 = MCU_PIN; //
LCD_DB4 = MCU_PIN; //
LCD_DB5 = MCU_PIN; //
LCD_DB6 = MCU_PIN; //
LCD_DB7 = MCU_PIN; //
#include<MGLCD.h>
MGLCD MGLCD_12864(); //
MGLCD_12864.initLCD(); //
MGLCD_12864.rotateDisplay(); //
MGLCD_12864.clrScr(); //
MGLCD_12864.fillScr(); //
MGLCD_12864.invert(); //
MGLCD_12864.setPixel(); //
MGLCD_12864.clrPixel(); //
MGLCD_12864.invPixel(); //
MGLCD_12864.drawLine(); //
MGLCD_12864.drawRect(); //
MGLCD_12864.drawRoundRect(); //
MGLCD_12864.drawCircle(); //
MGLCD_12864.drawBitmap(); //
MGLCD_12864.invertText(); //
MGLCD_12864.print(); //
MGLCD_12864.print(); //
MGLCD_12864.printNumI(); //
MGLCD_12864.printNumF(); //
MGLCD_D0 = MCU_PIN; //
MGLCD_D1 = MCU_PIN; //
MGLCD_D2 = MCU_PIN; //
MGLCD_D3 = MCU_PIN; //
MGLCD_D4 = MCU_PIN; //
MGLCD_D5 = MCU_PIN; //
MGLCD_D6 = MCU_PIN; //
MGLCD_D7 = MCU_PIN; //
MGLCD_A0 = MCU_PIN; //
MGLCD_RW = MCU_PIN; //
MGLCD_EP = MCU_PIN; //
MGLCD_RST = MCU_PIN; //
Secure-digit store SD functions:
#include<SD.h>
SD.begin (); //
SD.exists (); //
SD.remove (); //
SD.mkdir (); //
SD.rmdir (); //
SD.open (); //
SD_MCI_CIC_ID_D0 = MCU_PIN; //
SD_MCI_CIC_ID_D1 = MCU_PIN; //
SD_MCI_CIC_ID_D2 = MCU_PIN; //
SD_MCI_CIC_ID_D3 = MCU_PIN; //
SD_MCI_CIC_ID_CMD = MCU_PIN; //
SD_MCI_CIC_ID_CLK = MCU_PIN; //
SD_MCI_CIC_ID_SPI_CS = MCU_PIN; //
|
|
SD_MCI_CIC_ID_SPI_DI = MCU_PIN; //
SD_MCI_CIC_ID_SPI_DO = MCU_PIN; //
SD_MCI_CIC_ID_SPI_SCLK = MCU_PIN; //
SD_D0 = MCU_PIN; //
SD_D1 = MCU_PIN; //
SD_D2 = MCU_PIN; //
SD_D3 = MCU_PIN; //
SD_CMD = MCU_PIN; //
SD_CLK = MCU_PIN; //
SD_CS = MCU_PIN; //
SD_DI = MCU_PIN; //
SD_DO = MCU_PIN; //
SD_SCLK = MCU_PIN; //
Two-wired interface functions:
#include<I2C.h>
I2C.begin(); //
I2C.end(); //
I2C.timeOut(); //
I2C.setSpeed(); //
I2C.pullup(); //
I2C.scan(); //
I2C.available(); //
I2C.receive(); //
I2C.write(); //
I2C.read(); //
I2C.start(); //
I2C.sendAddress(); //
I2C.sendByte(); //
I2C.receiveByte(); //
I2C.stop(); //
MCU_I2C_PC4_SDA
MCU_I2C_PC5_SCL
#include<TWI.h>
MCU_TWI_PC4_SDA = ...;
MCU_TWI_PC5_SCL = ...;
#include<I2S.h>
I2S.begin(); //
I2S.end(); //
I2S.available(); //
I2S.peek(); //
I2S.write(); //
I2S.availableForWrite(); //
I2S.onTransmit(); //
I2S.onReceive(); //
DATA
WS
SCK
Keypad functions:
#include<Keypad.h>
Keypad.pin_mode (); //
Keypad.pin_write (); //
Keypad.pin_read (); //
Keypad.char getKey(); //
Keypad.getKeys (); //
Keypad.getState (); //
Keypad.begin (); //
Keypad.isPressed (); //
Keypad.setDebounceTime (); //
Keypad.setHoldTime (); //
Keypad.addEventListener (); //
Keypad.findInList (); //
Keypad.findInList (); //
Keypad.waitForKey (); //
Keypad.keyStateChanged (); //
Keypad.numKeys (); //
KEY_COL0_C0 = MCU_PIN; //
KEY_COL1_C1 = MCU_PIN; //
KEY_COL2_C2 = MCU_PIN; //
KEY_COL3_C3 = MCU_PIN; //
KEY_COL4_C4 = MCU_PIN; //
...
KEY_ROW0_R0 = MCU_PIN; //
KEY_ROW1_R1 = MCU_PIN; //
KEY_ROW2_R2 = MCU_PIN; //
KEY_ROW3_R3 = MCU_PIN; //
KEY_ROW4_R4 = MCU_PIN; //
...
KBD_COL_A0 = MCU_PIN; //
KBD_COL_A1 = MCU_PIN; //
KBD_COL_A2 = MCU_PIN; //
KBD_COL_A3 = MCU_PIN; //
KBD_ROW_D0 = MCU_PIN; //
KBD_ROW_D1 = MCU_PIN; //
KBD_ROW_D2 = MCU_PIN; //
KBD_ROW_D3 = MCU_PIN; //
PLKPD_PLAY = MCU_PIN; //
|
|
PLKPD_PAUSE = MCU_PIN; //
PLKPD_STOP = MCU_PIN; //
PLKPD_RWD = MCU_PIN; //
PLKPD_FWD = MCU_PIN; //
PLKPD_VOLMAX = MCU_PIN; //
PLKPD_VOLMIN = MCU_PIN; //
Keyboard functions:
#include<Keyboard.h>
Keyboard.begin (); //
Keyboard.end (); //
Keyboard.press (); //
Keyboard.print (); //
Keyboard.println (); //
Keyboard.release (); //
Keyboard.releaseAll (); //
Keyboard.write (); //
Mouse functions:
#include<Mouse.h>
Mouse.begin (); //
Mouse.click (); //
Mouse.end (); //
Mouse.move (); //
Mouse.press (); //
Mouse.release (); //
Mouse.isPressed (); //
Light-emitting diode display functions:
#include<OLED_I2C.h>
OLED OLED_I2C(); //
OLED_I2C.begin(); //
OLED_I2C.update(); //
OLED_I2C.setBrightness(); //
OLED_I2C.clrScr(); //
OLED_I2C.fillScr(); //
OLED_I2C.invert(); //
OLED_I2C.setPixel(); //
OLED_I2C.clrPixel(); //
OLED_I2C.invPixel(); //
OLED_I2C.invertText(); //
OLED_I2C.print(); //
OLED_I2C.print(); //
OLED_I2C.printNumI(); //
OLED_I2C.printNumF(); //
OLED_SDA = ...; //
OLED_SCL = ...; //
Electrical erasable programmabe read-only memory:
#include<EEPROM.h>
EEPROM.write (); //
EEPROM.read (); //
EEPROM.update (); //
EEPROM.put (); //
EEPROM.get (); //
#include<SPI.h>
#include<GSM.h>
#include<Bridge.h>
#include<keypad.h.h>
#include<Keypad.h>
Digital-to-analog converter functions:
#include<TDA1543.h>
TDA1543 DAC_I2S(MCU_PIN, MCU_PIN, MCU_PIN); //
DAC_I2S_BCK = MCU_PIN; //
DAC_I2S_WS = MCU_PIN; //
DAC_I2S_DATA = MCU_PIN; //
Дата добавления: 2018-09-20; просмотров: 279; Мы поможем в написании вашей работы! |
Мы поможем в написании ваших работ!