Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define BAUD 9600
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(BAUD);
- Serial.println();
- pinMode(2,INPUT);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- Serial.println(digitalRead(2));
- delay(100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement