Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int incomingByte = 0;
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- Serial.println("Ready");
- }
- void loop() {
- // put your main code here, to run repeatedly:
- if(Serial.available() > 0){
- incomingByte = Serial.read();
- Serial.print("I received: ");
- Serial.println(incomingByte, DEC);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment