Timeline for Output specific value using port manipulation
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 10, 2017 at 20:45 | vote | accept | Adrian | ||
| Jan 5, 2017 at 17:21 | comment | added | jfpoilpret |
Have you read the ATmega328 datasheet? This is where you have to start. Taking a look at the implementation of analogWrite() might help too.
|
|
| Jan 4, 2017 at 3:25 | answer | added | Nick Gammon♦ | timeline score: 1 | |
| Jan 4, 2017 at 2:36 | comment | added | Adrian | @NickGammon Alright, I made some quick research and I am back from where I started. I must actually generate a PWM on that PIN and change the duty cycle acordingly ( basically what analogWrite does). Am I right? | |
| Jan 4, 2017 at 2:20 | comment | added | Nick Gammon♦ |
Of course, how do you think analogWrite does it?
|
|
| Jan 4, 2017 at 2:07 | review | First posts | |||
| Jan 5, 2017 at 17:21 | |||||
| Jan 4, 2017 at 2:06 | history | asked | Adrian | CC BY-SA 3.0 |