Skip to content
Snippets Groups Projects
Commit 9726cd5b authored by Razvan-Stefan Costea's avatar Razvan-Stefan Costea
Browse files

Fix mistake about DDRx bit significance


Signed-off-by: default avatarRazvan-Stefan Costea <costeastefan2003@gmail.com>
parent c20bc814
No related branches found
No related tags found
No related merge requests found
Pipeline #109226 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment