Questions tagged [arduino-makefile]

9 questions
3
votes
1 answer

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/Arduino.mk Currently all of my code is spread among…
php_nub_qq
  • 223
  • 3
  • 10
2
votes
1 answer

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' 'SKIP_WHITESPACE' was not declared in this…
stella
  • 31
  • 2
2
votes
1 answer

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; ^ which on the Internet, people often say your…
ar2015
  • 173
  • 7
2
votes
0 answers

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 write files. I have formatted the card in FAT32…
habla
  • 21
  • 1
0
votes
1 answer

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 keep getting: make: *** No rule to make target…
php_nub_qq
  • 223
  • 3
  • 10
0
votes
1 answer

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 control library. Error…
J. Doe
  • 127
  • 1
  • 6
0
votes
1 answer

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 can't do it using the IDE. Now I need to include…
0
votes
1 answer

usart sketch uploaded using makefile gives unusual behaviour

This is a simple usart program in avr c which just transmits a character. #include #include #define F_CPU 16000000UL #define BAUD 9600 #define BAUD_PRESCALLER ((F_CPU / (BAUD * 16UL)) - 1) void send_val(unsigned char); int…
YsK
  • 3
  • 3
-1
votes
1 answer

No data in text file

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 myPort; // Create object from Serial class String…