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.

5
  • 1
    Old habits from plain C? Commented Aug 27, 2019 at 15:23
  • 1
    @EdgarBonet I was already a bit 'afraid' of such remark. Commented Aug 27, 2019 at 15:26
  • 1
    People copying examples from people that have bad habits, or learned from people with bad habits. Commented Aug 27, 2019 at 15:53
  • 1
    I would use a byte for values that are <=255, save on memory. Commented Aug 27, 2019 at 16:06
  • 1
    @CrossRoads You are right ... although I use mostly int's when I just want to test something, for a program where I expect (even in future) that memory is an issue (which is very fast for an Arduino) I use smaller types. In this case it doesn't matter, it doesn't use any SRAM memory. Commented Aug 27, 2019 at 16:18