• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 hours ago

    Define on as true or something? Or maybe that’s more confusing. I’m not a C dev so I’m not gonna pretend to understand idiomatic microcontroller code lol.

    • Croquette@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      6 hours ago

      Sometimes, people do that. But using 0/1 is explicit enough since you can refer to a line as ‘1’ or ‘0’ for high/low on the hardware as well