2016-12-18 23:06:41 +02:00
|
|
|
# I237 Door Access program
|
2016-10-02 21:23:35 +03:00
|
|
|
|
|
|
|
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!
|
2016-12-18 22:43:53 +02:00
|
|
|
|
|
|
|
# License
|
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
```Text
|
|
|
|
Copyright (C) 2016 Arti Zirk <arti.zirk@gmail.com>
|
2016-12-18 22:43:53 +02:00
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
This file is part of I237 Door Access program.
|
2016-12-18 22:43:53 +02:00
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
I237 Door Access is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2016-12-18 22:43:53 +02:00
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
I237 Door Access is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2016-12-18 22:43:53 +02:00
|
|
|
|
2016-12-18 23:05:43 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with I237 Door Access. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
```
|