Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint8_t eelmine = 0;
- void setup()
- {
- DDRB = 0;
- Serial.begin(9600);
- }
- void loop()
- { //digitalRead912)
- if (PINB != eelmine)
- {
- if(PINB & 0b00010000)
- {
- //0->1
- Serial.println("nupp Press");
- }else
- {
- Serial.println("nupp Release");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement