ATtiny84 enable pullup resistors

From wikipost
Revision as of 01:52, 16 August 2012 by Admin (talk | contribs) (Created page with " * If PORTxn is written logic one when the pin is configured as an input pin, the pull-up resistor is activated. <pre> pinMode(PB0,INPUT); // set PB0 as input digita…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


  • If PORTxn is written logic one when the pin is configured as an input pin, the pull-up resistor is activated.
  pinMode(PB0,INPUT);     // set PB0 as input
  digitalWrite(PB0,HIGH); // enable the internal pull-up resistor
  • If PORTxn is written logic one when the pin is configured as an output pin, the port pin is driven high (one).