Skip to content

Commit 4901e01

Browse files
authored
Update README.md
How to Arduino-mk
1 parent 9ccdf06 commit 4901e01

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

UsingArduino/README.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Using the IDE and testing alternatives
1414
> - is supported by many board/sensor manufacturers
1515
1616
> [!TIP]
17-
> in [LearningAvrC](../LearningAvrC) (SID:Still In Development)
17+
> in [LearningAvrC](../LearningAvrC) (SID: Still In Development)
1818
> we will do some ***massive skimming***
1919
2020
## IDE - Basic Blink Sketch
@@ -160,8 +160,38 @@ And ***Arduino.h*** contains all the magically coloured commands ( just some exa
160160
> ```
161161
162162
## ArduinoMk
163-
This a beautifull package based on make-files which allows you to use Arduino code without the "heavyweight" IDE.\
164-
We'll use it for some examples.
163+
This a beautifull package by Martin J. Oldfield based on make-files which allows you to use Arduino code without the "heavyweight" IDE.\
164+
We'll use it for some examples.\
165+
166+
>[!NOTE]
167+
> On debian the package is called arduino-mk.\
168+
> It's philosophy is based on doing the work in your project's folder, and keeping the compiled binary in elf and hex format there, next to your sketch.
169+
> It's well documented.\
170+
> You can use standard arduino language and the standard arduino boards easily. Other boards are supported through extra configuration options.
171+
172+
### Example Makefile
173+
```
174+
ARDUINO_DIR = /usr/share/arduino
175+
ARDMK_DIR = /usr/share/arduino
176+
#AVR_TOOLS_DIR = /usr
177+
#ARDUINO_LIBS = Ethernet SPI
178+
BOARD_TAG = uno
179+
MONITOR_PORT = /dev/ttyACM0
180+
AVRDUDE = /usr/share/arduino/hardware/tools/avrdude
181+
AVRDUDE_CONF = /usr/share/arduino/hardware/tools/avrdude.conf
182+
include /usr/share/arduino/Arduino.mk
183+
```
184+
>[!IMPORTANT]
185+
>if your BOARD_TAG is UNO, the output will be in subfolder 'build-uno'
186+
187+
### Using Arduino-Mk
188+
189+
>[!TIP]
190+
> - create the folder for your project
191+
> - add your ino-sketch
192+
> - create "Makefile" as shown above
193+
> - basically just ```make``` or ```make upload```
194+
> - ```make help``` is your friend
165195
166196
## Addendum
167197
In your sketch or temporary folder you will find a file called ***main.cpp.d***

0 commit comments

Comments
 (0)