| Electronic Components Datasheet Search |
|
DFR0627 Datasheet(PDF) 10 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0627 Datasheet(HTML) 10 Page - DFROBOT |
|
10 / 16 page ![]() 2023/10/12 10:51 Gravity: IIC to dual UART module Wiki - DFRobot https://wiki.dfrobot.com/Gravity: IIC to Dual UART Module SKU: DFR0627 10/16 Serial.println("Serial to print UART1 and UART2's receive data.");//print the data received by UART1 and UART2 } void loop() { char c; if(iicSerial1.available()){/*available return the number of byte in UART1 receive buffer, none- return 0*/ flag = 0; while(iicSerial1.available()){ if(flag == 0){ Serial.print("\nUART1 receive data: "); flag = 1; } c = iicSerial1.read();/*Read data of UART1 receive buffer */ Serial.print(c); } } if(iicSerial2.available()){ flag = 0; while(iicSerial2.available()){ if(flag == 0){ Serial.print("\nUART2 receive data: "); flag = 1; } Serial.print(iicSerial2.read());/*Read and print the data of Sub UART2 receive buffer*/ } } delay(1000); } Expected Result Serial print the following information. |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |