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