Author Topic: Digispark attiny85 board can´t LOW PB pins  (Read 882 times)

smascare

  • Newbie
  • *
  • Posts: 1
Digispark attiny85 board can´t LOW PB pins
« on: July 16, 2019, 04:28:57 am »
Hello All Community!

I´m powering digispark attiny85 with 9V in the Vin and Gnd pins.

When programming any pin to set to LOW in the OUTPUT, i verify high voltage in that pin (about + 3V).

When i use digitalWrite(2, LOW) not obtain a Low voltage on pin 2.

What is wrong?
« Last Edit: July 16, 2019, 04:41:24 am by smascare »

granzeier

  • Jr. Member
  • **
  • Posts: 69
Re: Digispark attiny85 board can´t LOW PB pins
« Reply #1 on: July 16, 2019, 12:12:29 pm »
Did you configure the pin as an output with PinMode (https://www.arduino.cc/reference/en/language/functions/digital-io/digitalwrite/)?
If the pin is configured as an input, when you try to write a low, it will disable the internal pull-up resistor, and you will see a float.