SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By mamama1
#195625
Hi

i have just hooked up a SX1509 board to an ESP8266.
Breathe seems to work, but analogWrite does not.

I'm not sinking current but I'm sourcing it, as I have hooked up NPN Mosfets (IRL3708) and then subsequently the LEDs.
When I set a pin to analogWrite, it has about like half of the LED brightness and doesn't change, no matter what value I set analogWrite to.

Should analogWrite work with NPN MOSFET setups and sourcing current? The example specifically mentions that analogWrite expects sourcing current. Do I have to modify the library in any way?

Thanks