Yes, I used
DDRB = 0;
PORTB = B000001;
and got the same result of measuring 1.77 V at PB0.
Ahhhhh!
The code is just the two lines in setup:
void setup()
{
pinMode(0, INPUT); //pushbutton
digitalWrite(0, HIGH);
}
void loop()
{
}
Yes, I used
DDRB = 0;
PORTB = B000001;
and got the same result of measuring 1.77 V at PB0.
Ahhhhh!
The code is just the two lines in setup:
void setup()
{
pinMode(0, INPUT); //pushbutton
digitalWrite(0, HIGH);
}
void loop()
{
}