Created
November 2, 2015 06:30
-
-
Save serverhiccups/88c0f7ec2bb48e331f82 to your computer and use it in GitHub Desktop.
A test piece of code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int incomingByte = 0; // for incoming serial data | |
void setup() { | |
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps | |
int tonePin = 9; | |
} | |
void loop() { | |
// send data only when you receive data: | |
if (Serial.available() > 0) { | |
// read the incoming byte: | |
incomingByte = Serial.read(); | |
incomingByte - 96; | |
incomingByte * 50000; | |
// say what you got: | |
Serial.print("I received: "); | |
Serial.println(incomingByte); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment