Skip to content
Snippets Groups Projects
Commit f6b07ea9 authored by Răzvan-Ştefan COSTEA's avatar Răzvan-Ştefan COSTEA Committed by Alexandru RADOVICI
Browse files

Fix mistake about DDRx bit significance

parent 4be336d0
No related branches found
No related tags found
No related merge requests found
......@@ -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