Checking out the Hello World of Things
A Hello World program is the typical way to start the journey in a new programming language. A Hello World program on a microcontroller looks a bit different compared to a normal Hello World program. We are going to write a Hello World program to let the built-in LED blink. Let's get started!
Getting the requirements ready
To get started with our program, we need the following:
- An Arduino UNO
- One USB cable to connect it to your computer
Preparing the project
Follow these steps closely for your project:
- Create a new folder named
ch1
in the root of your project. - Inside the folder, we need to create a folder named
hello-world-of-things
and inside it, we are going to create a newmain.go
file. - Your structure should now look like the following:
As we have now prepared our project, we can go on and write our first program.