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.

2
  • The very image you are linking to shows PB4 on physical pin 3. Commented Jan 12, 2024 at 18:18
  • Right. What I'm saying though is that the code has PB2 but the pot is responding on pin 3. The code that you see there works with the wiring that you see, even though it shouldn't because if the pin definitions were right, that green wire should be connected next to VCC, not GND. Commented Jan 12, 2024 at 18:27