Joreg (joreg) wrote,
Joreg
joreg

Arduino codestyle

https://www.arduino.cc/en/Reference/StyleGuide

...
Use verbose if statements. For simplicity to the beginning reader, use the block format for everything, i.e. avoid this:

if (somethingIsTrue) doSomething;

Instead, use this:

if (somethingIsTrue == TRUE) {
   doSomething;
}

Avoid pointers

Avoid #defines
...
Tags: arduino, fun
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments