A Chronicle of My “Getting Started With Arduino” Journey

Episode 2: Very first sketch for the “spaceship interface” project

Shan Dou
2 min readJun 3, 2018
Fig 1: The ultra plain “spaceship”

Clearly I did not bother to make the paper cover as suggested in the guide book :P

Made the very first sketch and played with two modes:

  • “spaceship” starts with green LED on, and upon the push of the button, the two red LED starts to flash in an alternating way
  • “spaceship” starts with alternating red LEDs on and upon the push of the button, red LEDs go off and green LED is on

Remaining Questions

Simply by writing sketches in the IDE and upload them, the board reacts well. However, I don’t have an understanding about:

1. Does Arduino have a dictated search paths when loading sketches?

I started out changing the path into a git repo but the sketches immediately fail to be loaded — including the built-in Blink example. This confuses me and makes me wonder about if there are other dependencies involved, and about how to effectively code outside of the Arduino IDE.

2. What is the best way to organize Arduino codes?

Because I don’t have a grasp of its code and file structure, this also remains unanswered and will be important in the near future.

--

--

Shan Dou
Shan Dou

No responses yet