Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SoftwareSerial.h>
- byte incomingByte;
- void setup()
- {
- Serial.begin(9600);
- Serial2.begin(4800); // 16 17
- }
- void loop() {
- if (Serial2.available() > 0) {
- // read the incoming byte:
- incomingByte = Serial2.read();
- // say what you got:
- Serial.print("I received: ");
- Serial.println(incomingByte); // , DEC
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement