I’m just trying to use a transistor and a diode to control the speed of a small 3V3 DC Motor, then run a sample sketch that’s almost identical to the example sketch for using analogWrite in the documentation. Here’s my code:
int mPin = D0;
void setup() {
pinMode(mPin, OUTPUT);
}
void loop() {
anologWrite(mPin, 100);
delay(10);
}
There’s probably something very fundamental I’m blanking out on, and I’d really appreciate any help.