• Croquette@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    12 hours ago

    I am a lazy dev (not really, clients always want fast code), so I use the provided HAL libraries 99.9% of the time.

    But I have seen code where someone would write something like

    gpio_write(PIN_X, true) 
    

    and it always stood out to me.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 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.