int incomingByte = 0; // for incoming serial data
void setup() {
// put your setup code here, to run once:
Serial.begin(100); // opens serial port, sets data rate to 300 bps
pinMode(13, OUTPUT);
}
void loop() {
// read the incoming byte:
if(Serial.available()){
// // say what you got:
incomingByte = Serial.read();
Serial.print(char(incomingByte));
}
}
SW1: OUT_EN
SW2: RST_N
SW3: IN_SEL
SW4: EXT_IN
UART Debug
'P' 0x50
'S' 0x53
'I' 0x49
' ' 0x20
'O' 0x4F
'p' 0x70
'e' 0x65
'n' 0x6E
' ' 0x20
'I' 0x49
'C' 0x43
' ' 0x20
'2' 0x32
'0' 0x30
'2' 0x32
'6' 0x36
'
' 0x0A
Idle/Injection chain: 10 bits