2016-10-02 21:23:35 +03:00
|
|
|
# I237 Hardware Programming
|
|
|
|
|
|
|
|
This here is my repository for hardware programming course at
|
|
|
|
Estonian IT College that is based around a
|
|
|
|
[Arduino Mega 2560](https://www.arduino.cc/en/Main/ArduinoBoardMega2560).
|
|
|
|
|
|
|
|
This code us usualy updated once every two weeks when a new excersice is put up
|
|
|
|
by Silver Kits.
|
|
|
|
|
|
|
|
# How to install
|
|
|
|
|
|
|
|
Currently to test this code you have to clone the repository
|
|
|
|
|
2016-10-02 21:27:32 +03:00
|
|
|
```bash
|
|
|
|
git clone https://git.wut.ee/arti/i237.git hardware
|
|
|
|
cd hardware
|
|
|
|
```
|
2016-10-02 21:23:35 +03:00
|
|
|
|
|
|
|
And export a enviroment variable that points to a Arduino Mega board. The
|
|
|
|
real path will depend on the OS and Computer that you are using. For me it is
|
|
|
|
usualy `/dev/ttyACM0`.
|
|
|
|
|
2016-10-02 21:27:32 +03:00
|
|
|
```bash
|
|
|
|
export ARDUINO=/dev/ttyACM0
|
|
|
|
```
|
2016-10-02 21:23:35 +03:00
|
|
|
|
|
|
|
After that you can `make` the project.
|
|
|
|
|
2016-10-02 21:27:32 +03:00
|
|
|
```bash
|
|
|
|
make clean
|
|
|
|
make
|
|
|
|
make install
|
2016-10-02 21:28:15 +03:00
|
|
|
```
|
2016-10-02 21:23:35 +03:00
|
|
|
|
|
|
|
You can also chekcout previous labs using `git checkout <lab name>`. For example
|
|
|
|
|
2016-10-02 21:27:32 +03:00
|
|
|
```bash
|
|
|
|
git checkout lab02
|
|
|
|
```
|
2016-10-02 21:23:35 +03:00
|
|
|
|
|
|
|
Don't forget to `make clean` after each checkout!
|