LattePandaTeam / LattePanda-Development-Support

43 stars 80 forks source link

Firmata and PWM-pins problems #14

Open antongit opened 5 years ago

antongit commented 5 years ago

Hello,

I have an issue with those PWM / Analog pins (like the pin10). If I change the "LattePandaFirmataDemo" so that I'm controlling PWM on pin 10 like this:

arduino.pinMode(10, Arduino.PWM); arduino.analogWrite(10, bar.Value);

my LED lights up ONLY when the slider is on the right and I'm sending 255, nothing happens in-between. The app gets very unresponsive as well.

This issue doesn't appear if I use pin11 which is not overloaded by any Analog pin.