test_serial.py.ino 211 B

12345678910111213
  1. byte number = 0;
  2. void setup(){
  3. Serial.begin(9600);
  4. }
  5. void loop(){
  6. if (Serial.available()) {
  7. number = Serial.read();
  8. Serial.print(“character recieved: “);
  9. Serial.println(number, DEC);
  10. }
  11. }