From 41b544b80d237000f40d09751a33cee285946d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 7 Feb 2016 12:24:31 +0100 Subject: [PATCH] readme adjust --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b35ff7b..9e4b8b5 100644 --- a/README.md +++ b/README.md @@ -37,17 +37,19 @@ The provided `main.c` is a good starting point - it contains some simple demo co You can compile it with `make` and flash with `make flash`. -### adjusting the Makefile +### "It doesn't work" **Before you can flash,** check that the `avrdude` options in the file are correct for your system - especially the device (`/dev/ttyUSB0`). It can differ if you're on Mac or Windows (`/dev/cu.xxx`, resp. `COMx`). -You can look what the Arduino IDE is using - it's running avrdude internally as well. +You may also adjust the baudrate (`-b 57600`). Some boards need 115200 or a different value. -If you *add a new C file* to the project, add an entry for it's `.o` (object file, -created by the compiler before linking) to the `OBJS` list in the Makefile. +You can look what the Arduino IDE is using - it's running avrdude too. -Similarly, if you *add a new folder with header files*, add it to `INCL_DIRS`. +### adjusting the Makefile -In case you need `printf` (or `printf` with floats), enable the appropriate LD_FLAGS in the Makefile (it's well +- If you *add a new C file* to the project, add an entry for it's `.o` (object file, +created by the compiler before linking) to the `OBJS` list in the Makefile. +- Similarly, if you *add a new folder with header files*, add it to `INCL_DIRS`. +- In case you need `printf` (or `printf` with floats), enable the appropriate LD_FLAGS in the Makefile (it's well commented). Code size will - obviously - grow quite a bit.