Add language to code snippets in readme

This commit is contained in:
Arti Zirk 2016-10-02 21:27:32 +03:00
parent 275cf9fa28
commit aa4e954f76

View File

@ -11,23 +11,31 @@ by Silver Kits.
Currently to test this code you have to clone the repository Currently to test this code you have to clone the repository
```bash
git clone https://git.wut.ee/arti/i237.git hardware git clone https://git.wut.ee/arti/i237.git hardware
cd hardware cd hardware
```
And export a enviroment variable that points to a Arduino Mega board. The 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 real path will depend on the OS and Computer that you are using. For me it is
usualy `/dev/ttyACM0`. usualy `/dev/ttyACM0`.
```bash
export ARDUINO=/dev/ttyACM0 export ARDUINO=/dev/ttyACM0
```
After that you can `make` the project. After that you can `make` the project.
```bash
make clean make clean
make make
make install make install
```bash
You can also chekcout previous labs using `git checkout <lab name>`. For example You can also chekcout previous labs using `git checkout <lab name>`. For example
```bash
git checkout lab02 git checkout lab02
```
Don't forget to `make clean` after each checkout! Don't forget to `make clean` after each checkout!