Skip to content

Instantly share code, notes, and snippets.

View emilf's full-sized avatar

Emil Fridriksson emilf

View GitHub Profile
@emilf
emilf / CH376S_UART_One.ino
Created February 12, 2018 00:54 — forked from K-ways/CH376S_UART_One.ino
CH376S USB Chip with UART Communication.
// 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