Skip to content
Snippets Groups Projects
Commit a0dc3ac1 authored by Alexandru RADOVICI's avatar Alexandru RADOVICI
Browse files

Merge branch 'fix-gpio-avr' into 'main'

Fix mistake about DDRx bit significance

See merge request !76
parents 4be336d0 f6b07ea9
No related branches found
No related tags found
1 merge request!76Fix mistake about DDRx bit significance
Pipeline #109264 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