From 9726cd5b4dcaff407e8e52103672e88843cc34dd Mon Sep 17 00:00:00 2001 From: Razvan-Stefan Costea <costeastefan2003@gmail.com> Date: Sun, 30 Mar 2025 12:15:51 +0300 Subject: [PATCH] Fix mistake about DDRx bit significance Signed-off-by: Razvan-Stefan Costea <costeastefan2003@gmail.com> --- slides/lectures/resources/gpio_avr/slides.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides/lectures/resources/gpio_avr/slides.md b/slides/lectures/resources/gpio_avr/slides.md index 090b6ab..f1ee714 100644 --- a/slides/lectures/resources/gpio_avr/slides.md +++ b/slides/lectures/resources/gpio_avr/slides.md @@ -20,7 +20,7 @@ A simple GPIO <br> -> <b> DDRx - Data Direction Register. </b> If the data direction bit is 1, the pin is an input. 0 is an output. +> <b> DDRx - Data Direction Register. </b> If the data direction bit is 0, the pin is an input. 1 is an output. ```c DDRB &= ~(1<<DDB7); // Makes pin PB7 an input -- GitLab