Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This will correspond to the pin 10 of the arduino uno rigth? arduino.cc/en/Hacking/PinMapping168. I have no try the code and get no output Commented Feb 22, 2016 at 21:38
  • 1
    Yes, per that diagram digital Pin 10 is OC1B, but since on the atmega168, it is PB2, so the DataDirectionRegister needs to enable bit 2. I added it in a comment in the above code, but I'm not able to test it. Commented Feb 23, 2016 at 1:30
  • Tested, it works just fine. Commented Feb 23, 2016 at 16:31