Tutorial 2 : Running simple LED Blink Program - sudeshmoreyos/Morey_os-demo-1.0 GitHub Wiki
In this tutorial we will learn how to run an example code named led-blink on an Arduino Board. We are yet learn how to write a code in Morey_os operating system. This tutorial only aims to compile an example program and run on an Arduino Uno hardware.
Pre-Requisites:
-
You should have installed all essentials tools and utilities for Morey_os. Refer Tutorial-1 for the same.
-
You should have an Arduino Uno Board.
-
Arduino software installed on your PC to install essential drivers for Arduino Uno Board.
The steps to run our first program is as follows :
- Connect Arduino Uno to your PC.
- Go to Device Manager -> Ports(COM & LPT) and check for COM Port to which Arduino Uno is connected.
As shown above, Arduino Uno is connected to COM3. Similarly check COM Port of your Arduino Uno.
- Next open git bash. Assuming that morey_os is saved in C drive, change directory to C:\Morey_os-demo-1.0\examples\board-examples\arduino-uno\led-blink by typing command :
cd "C:\Morey_os-demo-1.0\examples\board-examples\arduino-uno\led-blink"
- Then compile led_blink code by typing :
make
- Next step is programming the code into Arduino Uno. This can be done by typing command :
make program PROGRAMMER=arduino PORT=COM3
You should write the same COM port where your Arduino uno is connected to your PC.
- Now Led-13 of your Arduino Uno should be blinking. You can also connect an LED to pin A0 of Arduino. Both LEDs will blink together. Congratulations you have implemented your first Morey_os code!
Let us now understand our led-blink code in detail by reading Tutorial-3