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*

5
  • en.cppreference.com/w/cpp/language/constructor Commented Feb 24, 2023 at 18:56
  • @Juraj I read that page over a few times understanding what I could and I'm not seeing how it helps my situation Commented Feb 24, 2023 at 19:15
  • 1
    I don't understand much of it either, so I tried Attributes redBark {1, 2}; and it did not throw an error ... I have no idea if it does what you are expecting ... Attributes redBark {1}; and Attributes redBark {1, 2, 3}; both throw an error, so it might be what you want Commented Feb 24, 2023 at 20:04
  • 1
    @AJ_Smoothie your post is not Arduino specific, and really is a general programming question ... it belongs at stackoverflow.com/questions Commented Feb 24, 2023 at 20:19
  • @jsotola I tried the braces in my actual code (the parameters are input pins and default pin states) and it worked out just great. Thank you Commented Feb 27, 2023 at 15:39