j0h

andriod_arduino_test

j0h
Mar 18th, 2026
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. https://github.com/mik3y/usb-serial-for-android
  2. https://github.com/kai-morich/SimpleUsbTerminal
  3. https://github.com/mik3y/usb-serial-for-android
  4.  
  5. ############## ARDUINO ##############
  6. void setup() {
  7. Serial.begin(115200);
  8. while (!Serial) { } // wait for a connection
  9. Serial.println("READY");
  10. }
  11.  
  12. void loop() {
  13. // connect your phone and see if you get transmission interactions
  14. if (Serial.available()) {
  15. String input = Serial.readStringUntil('\n');
  16. Serial.print("ECHO: ");
  17. Serial.println(input);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment