So I'we been playing around a bit with my new Digisaprk Pro's and after finally getting the IDE to work on Linux I've stumbled upon some further problems that I am not sure how to resolve. Specifically the issue seems to be with the PWM outputs. To my understanding the PWM outputs should work on pins 0-5 and 8. However for me (on all 3 Digispark Pro's that I currently own), only pins 0 and 1 work as advertised. I've used the following code to test the pins:
int p=0;
void setup() {
pinMode(p, OUTPUT);
}
void loop() {
analogWrite(p,255);
delay(5000);
analogWrite(p,250);
delay(5000);
analogWrite(p,200);
delay(5000);
analogWrite(p,150);
delay(5000);
analogWrite(p,100);
delay(5000);
analogWrite(p,50);
delay(5000);
analogWrite(p,0);
delay(5000);
}
I changed the values of p and messured the results with an osciloscope and multimeter
0 -> works fine as expected
1 -> works fine voltages a tiny bit lower
2 -> acts almost like digital pin switching from 4.5V when analogWrite value is above 100, to 0V when at 100 or less
3 -> same as 2
4 -> same as 2
5 -> same as 2
8 -> same as 2
The results don't change much when powering the board via USB or with a standalone power supply.