dimag0g / nios_duino

NIOSDuino - Arduino framework running on NIOS II
GNU Lesser General Public License v2.1
17 stars 2 forks source link

Missing PWM software support #7

Closed alpensalamander closed 5 years ago

alpensalamander commented 5 years ago

I added PWM to my qsys file but analogWrite only contains

pinMode(pin, OUTPUT);
if (val < 128) {
    digitalWrite(pin, LOW);
} else {
    digitalWrite(pin, HIGH);
}