Everything i read about the chinese Digispark attiny85 clones says you can use p0-5 as digitlal I\O (p5 as after fuse reset)
Simple test code for a button will not let me use P1 as an input tied to a simple button.
The code below works on p0,p2,p5 but will only interrupt the LED that is set to on, on P1.
#include "DigiKeyboard.h"
//pins 3 & 4 used for usb connection
bool buttonState1 = 0;
void setup() {
pinMode(1, INPUT);
digitalWrite(1, HIGH); //turn on pull-up resistor
}
void loop() {
if (digitalRead(1)!= buttonState1){
buttonState1 = digitalRead(1);
if (buttonState1 == LOW)DigiKeyboard.print("test1");
}
}