Questions tagged [arduino-makefile]
The arduino-makefile tag has no usage guidance.
9
questions
2
votes
1
answer
57
views
Read values from a txt file on an SD card
I'm trying to read a text file (has numeric values) from SD card. The values in the file like this
87 512
255
I need to read 87 in ch1 and 512 in ch2 and 255 in ch3.
Why did I get on 'SKIP_NONE' '...
2
votes
1
answer
2k
views
How to build an arduino project with multiple source files?
I'm building an arduino program on linux, using the following Makefile:
ARDUINO_DIR = /usr/share/arduino
BOARD_TAG = uno
ARDUINO_PORT = /dev/ttyAMA0
ARDUINO_LIBS = Wire
include /usr/share/arduino/...
0
votes
1
answer
2k
views
How to include a file from another (parent) directory
This is my structure
program/
src/
Makefile
main.ino
test.h
...
lib/
i2c.h
In main.ino I include test.h and in test.h I'm trying to include i2c.h but it is just not working, I ...
0
votes
1
answer
275
views
How to install a dependency library to an Arduino compilation environment?
Following approach A from this Arduino SE answer, I managed to kick off an Arduino CLI compilation in a Docker environment.
However, the project I am trying to compile has a dependency on a LCD ...
2
votes
1
answer
943
views
How to know my Arduino core version and its location on my Ubuntu laptop?
Bakground:
When compiling a demo project about e-paper, I got this problem
./GxEPD/src/GxIO/GxIO_SPI/GxIO_SPI.h:39:5: error: ‘SPISettings’ does not name a type
SPISettings _spi_settings;
^
...
-1
votes
1
answer
167
views
No data in text file [closed]
Data can be seen in the console but the data is not being written in the text file. The file is created but there is no data in it.
Here is my code in Processing,
import processing.serial.*;
Serial ...
2
votes
0
answers
728
views
Error while creating file on sd card
I want to create a file and read it form sd card by arduino. I have used sd card module. I have used this following code. In serial monitor it says "SD card is ready to use." But it can't read or ...
0
votes
1
answer
143
views
Including Arduino library in a Makefile for Due
I'm currently using a Makefile for the Arduino Due I've found on Github (with some modifications). It's useful to me cause it allows me to add a static library for cryptographic functions I need and I ...
0
votes
1
answer
77
views
usart sketch uploaded using makefile gives unusual behaviour
This is a simple usart program in avr c which just transmits a character.
#include <avr/io.h>
#include <util/delay.h>
#define F_CPU 16000000UL
#define BAUD 9600
#define BAUD_PRESCALLER ((...