This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is the clear code for CH376S UART communication. | |
#include <SoftwareSerial.h> | |
byte USB_Byte; //used to store data coming from the USB stick | |
int LED = 13; //the LED is connected to digital pin 13 | |
int timeOut = 2000; //TimeOut is 2 seconds. This is the amount of time you wish to wait for a response from the CH376S module. | |
SoftwareSerial USB(10, 11); // Digital pin 10 on Arduino (RX) connects to TXD on the CH376S module | |
// Digital pin 11 on Arduino (TX) connects to RXD on the CH376S module |