Hi All,
I’m at the very early stages of learning and hopefully there is a simple explanation or solution. I’m trying to use the port on the right (Not the I2C port) to switch a simple fan off and on. To keep things simple I’ve modified the example Blink program. The below code works perfectly with my Arduino Uno when I connect to Digital Port 7. However when I try to use port D0 or D1 (with the white wire) I get nothing.
If I physically complete the circuit with the red wire the fan spins, so there is enough power to run the fan.
What am I missing or not understanding?
#define FAN D0 //Yellow wire - Wio Terminal
// #define FAN 7 //Yellow wire - Arduino Uno
//To control a simple Fan using the Wio Terminal
void setup() {
delay(200);
pinMode(FAN, OUTPUT);
}
void loop() {
digitalWrite(FAN, HIGH); // turn the FAN on (HIGH is the voltage level)
delay(3000); // wait for 3 second
digitalWrite(FAN, LOW); // turn the FAN off by making the voltage LOW
delay(3000); // wait for 3 second
}