From 5274ba1ee575196949ad8de11b3e3dee7951b177 Mon Sep 17 00:00:00 2001 From: hugo LAMY Date: Mon, 10 Mar 2025 15:21:15 +0100 Subject: [PATCH] mod03 ex03 ok --- module03/ex03/colors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module03/ex03/colors.c b/module03/ex03/colors.c index c801d47..1d30630 100644 --- a/module03/ex03/colors.c +++ b/module03/ex03/colors.c @@ -12,7 +12,7 @@ void init_rgb() { TCCR0A = 0; // 15.9.1 : Clear Timer0 control register A TCCR0B = 0; // 15.9.2 : Clear Timer0 control register B - TCCR2A = 0; // Clear Timer2 control register A + TCCR2A = 0; // 18.11.1 : Clear Timer2 control register A TCCR0A |= (1 << WGM00) | (1 << WGM01); // Table 15-8 : Timer0 in Fast PWM mode TCCR2A |= (1 << WGM20) | (1 << WGM21); // Table 18-8 : Timer2 in Fast PWM mode