• tetris11
    link
    fedilink
    arrow-up
    3
    ·
    6 days ago

    To be honest I’m still confused by a lot of these microcontroller languages (PlatformIO/Arduino/ESPHome)…

    Are they just drag and drop feature blocks that are essentially C macros, but you never get to see the code and its all abstracted with flow diagrams?

    • Kratzkopf@discuss.tchncs.de
      link
      fedilink
      arrow-up
      7
      ·
      6 days ago

      The standard Arduino platform is essentially C, just with some standard hardware-near procedures hidden away as far as I know. You can just write standard C code in two blocks: init and loop. Then the loop block will be repeated for ever. For controlling voltage pins you have easy commands similatlr to like pinState(PinNumber, on/off). I do not know about the others you mentioned, but there definetely is also some implementations for Raspberry Pi control by drag&drop. There is no need to limit yourself with those though.

    • DaPorkchop_
      link
      fedilink
      arrow-up
      5
      ·
      6 days ago

      I don’t know about the others, but Arduino is literally just C++ with some macros/library functions.