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*

4
  • 1
    digitalWrite is not optimized to translate the value of pinTest to the proper port/bit combination. If you need that, do it once in advance. Your code will be hardware-specific for avr-gcc targets. Commented Jan 14, 2023 at 12:25
  • @DataFiddler any resources on how to do that in advance? Commented Jan 14, 2023 at 12:29
  • Watch this youtube Why I’m switching over from the awesome Arduino IDE to Atmel Studio Commented Jan 14, 2023 at 12:30
  • Thanks all. Too bad, I am on Linux, so Atmel Studio is not an option, but I found a wait to build assembly code using arduino-cli and Visual Studio Code. Commented Jan 14, 2023 at 12:53