We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3830b18 commit b4d209dCopy full SHA for b4d209d
arduino.DuinOS/wiring_analog.c
@@ -88,19 +88,15 @@ void analogWrite(uint8_t pin, int val)
88
pinMode(pin, OUTPUT);
89
90
if (digitalPinToTimer(pin) == TIMER1A) {
91
- /* Because DuinOS uses the timer 1 for its kernel, disable this part:
92
// connect pwm to pin on timer 1, channel A
93
sbi(TCCR1A, COM1A1);
94
// set pwm duty
95
OCR1A = val;
96
- */
97
} else if (digitalPinToTimer(pin) == TIMER1B) {
98
99
// connect pwm to pin on timer 1, channel B
100
sbi(TCCR1A, COM1B1);
101
102
OCR1B = val;
103
104
#if defined(__AVR_ATmega8__)
105
} else if (digitalPinToTimer(pin) == TIMER2) {
106
// connect pwm to pin on timer 2, channel B
0 commit comments