Example
#define RX_PIN 3
#define TX_PIN 2
SoftSerial mySerial = SoftSerial( RX_PIN, TX_PIN );
char inByte; //storage for an incoming character
void setup(){
mySerial.begin(9600); //initialize pins and set baud rate
}
void loop() {
mySerial.print(“Hello”); //sends a string
mySerial.print(‘U’); //sends a character
// Check for a received character in the buffer
if (mySerial.available())
{
inByte = mySerial.read(); //reads the character from the buffer
}
Description
Illuminato software serial allows for serial communications on any two of the 8 digital pins from bank 0-7. Serial is used to communicate with a shield like the TouchShield.