Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- Serial.begin(38400);
- Serial3.begin(38400);
- }
- void loop() {
- while (Serial3.peek() != -1) {
- for (int x = 1; x < 10; x++) {
- if (Serial3.peek() < 0x10) {
- Serial.print("0");
- }
- Serial.print(Serial3.read(), HEX); Serial.print(" ");
- }
- Serial.println();
- }
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement