logoalt Hacker News

bombcartoday at 2:01 AM4 repliesview on HN

Familiarity - it’s easy for us Linux dweebs to build a pi that can flip an LED, but programming an arduino is an entire new area.


Replies

jfimtoday at 3:01 AM

It's pretty trivial to do so on Arduino though.

  void setup() {
    pinMode(LED_BUILTIN, OUTPUT);
  }
  
  void loop() {
    digitalWrite(LED_BUILTIN, HIGH);  
    delay(1000);                     
    digitalWrite(LED_BUILTIN, LOW);   
    delay(1000);                      
  }
show 1 reply
saidinesh5today at 4:31 AM

With micropython or some of the js based frameworks for microcontrollers, it's really not that new/different.Especially with ESP32/Pi Pico W/their clones...

In fact it's a lot more straight forward to not have to deal with Network Manager config files or systemd unit files or read only rootfs headaches of Linux world.

NooneAtAll3today at 4:31 AM

asking as a casual non-poweruser... how does one do that on linux exactly?

show 1 reply
grogenauttoday at 3:45 AM

good news, now you can use all that dram you can't afford to vibe code an arduino program. Think of the savings and the learnings!

show 1 reply