PlatformIO Community

Library header not found - Installed library seems to be empty?

Hi,

Years ago I used PlatformIO for a project. I was not very proficient with PIO, but I got it to work for me. I am now coming back to this project. After encountering the issues I will describe below, I decided to start fresh, and created a new project in the IDE, and moved the old source files over. I put my code’s .h files inside include and kept the .cpp files under src. Please help me figure out what the issue is. The setup seems simple enough to me.

Problem description:

When compiling, one of the headers provided by one of the libraries the project uses cannot be found.

Here is platformio.ini:

[env:protrinket5ftdi]
platform = atmelavr
board = protrinket5ftdi
framework = arduino
lib_deps = 
	jrowberg/I2Cdevlib-Core@0.0.0-alpha+sha.460d810002
	jrowberg/I2Cdevlib-ADXL345@0.0.0-alpha+sha.615f132009
	fastled/FastLED@^3.5.0

Here is where my code includes these libraries (my file parameters.h, and main.cpp):

#include <Arduino.h>
#include <ADXL345.h>    <--- This is the file that cannot be found.
#include <FastLED.h>
#include <I2Cdev.h>
#include <SPI.h>
#include <Wire.h>
#include <avr/pgmspace.h>
#include <math.h>
#include <accel.h>
#include <buttons.h>
#include <harmonic_oscillator.h>
#include <parameters.h>
#include <programs-common.h>
#include <utils.h>

The file that cannot be found is <ADXL345.h>. Here is the compilation output:

> Executing task in folder Flamingo Rev B: C:\Users\durandal\.platformio\penv\Scripts\platformio.exe run <

Processing protrinket5ftdi (platform: atmelavr; board: protrinket5ftdi; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/protrinket5ftdi.html
PLATFORM: Atmel AVR (2.2.0) > Adafruit Pro Trinket 5V/16MHz (FTDI)
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 28KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES:
 - framework-arduino-avr @ 5.0.0
 - toolchain-atmelavr @ 1.50400.190710 (5.4.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 14 compatible libraries
Scanning dependencies...
Dependency Graph
|-- I2Cdevlib-Core @ 0.0.0-alpha+sha.460d810002
|   |-- Wire @ 1.0
|-- I2Cdevlib-ADXL345 @ 0.0.0-alpha+sha.615f132009
|   |-- I2Cdevlib-Core @ 0.0.0-alpha+sha.460d810002
|   |   |-- Wire @ 1.0
|-- FastLED @ 3.5.0
|   |-- SPI @ 1.0
|   |-- SoftwareSerial @ 1.0
|-- SPI @ 1.0
|-- Wire @ 1.0
Building in release mode
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\FastLED.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\bitswap.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\colorpalettes.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\colorutils.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\hsv2rgb.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\lib8tion.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\noise.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\platforms.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\platforms\esp\32\clockless_rmt_esp32.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\power_mgt.cpp.o
Compiling .pio\build\protrinket5ftdi\lib8f1\FastLED\wiring.cpp.o
Compiling .pio\build\protrinket5ftdi\src\accel.cpp.o
Compiling .pio\build\protrinket5ftdi\src\buttons.cpp.o
Compiling .pio\build\protrinket5ftdi\src\main.cpp.o
Compiling .pio\build\protrinket5ftdi\src\programs\bouncing_balls.cpp.o
In file included from src\accel.cpp:2:0:
include/parameters.h:4:21: fatal error: ADXL345.h: No such file or directory

*****************************************************************
* Looking for ADXL345.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ADXL345.h"
* Web  > https://registry.platformio.org/search?q=header:ADXL345.h
*
*****************************************************************

compilation terminated.
In file included from src\buttons.cpp:2:0:
include/parameters.h:4:21: fatal error: ADXL345.h: No such file or directory

*****************************************************************
* Looking for ADXL345.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ADXL345.h"
* Web  > https://registry.platformio.org/search?q=header:ADXL345.h
*
*****************************************************************

compilation terminated.
*** [.pio\build\protrinket5ftdi\src\accel.cpp.o] Error 1
*** [.pio\build\protrinket5ftdi\src\buttons.cpp.o] Error 1
src\main.cpp:1:21: fatal error: ADXL345.h: No such file or directory

*****************************************************************
* Looking for ADXL345.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ADXL345.h"
* Web  > https://registry.platformio.org/search?q=header:ADXL345.h
*
*****************************************************************

compilation terminated.
In file included from src\programs\bouncing_balls.cpp:1:0:
include/parameters.h:4:21: fatal error: ADXL345.h: No such file or directory

*****************************************************************
* Looking for ADXL345.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ADXL345.h"
* Web  > https://registry.platformio.org/search?q=header:ADXL345.h
*
*****************************************************************

compilation terminated.
*** [.pio\build\protrinket5ftdi\src\programs\bouncing_balls.cpp.o] Error 1
*** [.pio\build\protrinket5ftdi\src\main.cpp.o] Error 1
====================================================================================== [FAILED] Took 3.05 seconds ======================================================================================
The terminal process "C:\Users\durandal\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

As you can see, there is no problem with the FastLED library, but the I2CDev llibraries (-Core and -ADXL345) don’t seem to be compiling/working.

Here is what my file structure looks like. The I2CDevlib folders look pretty empty. Is this where the problem lies? Are these libraries just broken when installed via PlatformIO? They used to work. I did update them using the library manager. Do I need to specify an old version?

β”‚   .gitignore
β”‚   platformio.ini
β”‚   README.md
β”‚
β”œβ”€β”€β”€.pio
β”‚   β”œβ”€β”€β”€build
β”‚   β”‚   β”‚   project.checksum
β”‚   β”‚   β”‚
β”‚   β”‚   └───protrinket5ftdi
β”‚   β”‚       β”‚   .sconsign37.dblite
β”‚   β”‚       β”‚
β”‚   β”‚       β”œβ”€β”€β”€lib8f1
β”‚   β”‚       β”‚   └───FastLED
β”‚   β”‚       β”‚       β”‚   bitswap.cpp.o
β”‚   β”‚       β”‚       β”‚   colorpalettes.cpp.o
β”‚   β”‚       β”‚       β”‚   colorutils.cpp.o
β”‚   β”‚       β”‚       β”‚   FastLED.cpp.o
β”‚   β”‚       β”‚       β”‚   hsv2rgb.cpp.o
β”‚   β”‚       β”‚       β”‚   lib8tion.cpp.o
β”‚   β”‚       β”‚       β”‚   noise.cpp.o
β”‚   β”‚       β”‚       β”‚   platforms.cpp.o
β”‚   β”‚       β”‚       β”‚   power_mgt.cpp.o
β”‚   β”‚       β”‚       β”‚   wiring.cpp.o
β”‚   β”‚       β”‚       β”‚
β”‚   β”‚       β”‚       └───platforms
β”‚   β”‚       β”‚           └───esp
β”‚   β”‚       β”‚               └───32
β”‚   β”‚       β”‚                       clockless_rmt_esp32.cpp.o
β”‚   β”‚       β”‚
β”‚   β”‚       └───src
β”‚   β”‚           └───programs
β”‚   └───libdeps
β”‚       └───protrinket5ftdi
β”‚           β”‚   integrity.dat
β”‚           β”‚
β”‚           β”œβ”€β”€β”€FastLED
β”‚           β”‚   β”‚   .gitignore
β”‚           β”‚   β”‚   .piopm
β”‚           β”‚   β”‚   code_of_conduct.md
β”‚           β”‚   β”‚   component.mk
β”‚           β”‚   β”‚   keywords.txt
β”‚           β”‚   β”‚   library.json
β”‚           β”‚   β”‚   library.properties
β”‚           β”‚   β”‚   LICENSE
β”‚           β”‚   β”‚   PORTING.md
β”‚           β”‚   β”‚   README.md
β”‚           β”‚   β”‚   release_notes.md
β”‚           β”‚   β”‚   workspace.code-workspace
β”‚           β”‚   β”‚
β”‚           β”‚   β”œβ”€β”€β”€.github
β”‚           β”‚   β”‚   └───workflows
β”‚           β”‚   β”‚           build.yml
β”‚           β”‚   β”‚
β”‚           β”‚   β”œβ”€β”€β”€ci
β”‚           β”‚   β”‚       ci-compile
β”‚           β”‚   β”‚
β”‚           β”‚   β”œβ”€β”€β”€examples
β”‚           β”‚   β”‚   β”œβ”€β”€β”€AnalogOutput
β”‚           β”‚   β”‚   β”‚       AnalogOutput.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Blink
β”‚           β”‚   β”‚   β”‚       Blink.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€ColorPalette
β”‚           β”‚   β”‚   β”‚       ColorPalette.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€ColorTemperature
β”‚           β”‚   β”‚   β”‚       ColorTemperature.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Cylon
β”‚           β”‚   β”‚   β”‚       Cylon.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€DemoReel100
β”‚           β”‚   β”‚   β”‚       DemoReel100.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Fire2012
β”‚           β”‚   β”‚   β”‚       Fire2012.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Fire2012WithPalette
β”‚           β”‚   β”‚   β”‚       Fire2012WithPalette.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€FirstLight
β”‚           β”‚   β”‚   β”‚       FirstLight.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Multiple
β”‚           β”‚   β”‚   β”‚   β”œβ”€β”€β”€ArrayOfLedArrays
β”‚           β”‚   β”‚   β”‚   β”‚       ArrayOfLedArrays.ino
β”‚           β”‚   β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”‚   β”œβ”€β”€β”€MirroringSample
β”‚           β”‚   β”‚   β”‚   β”‚       MirroringSample.ino
β”‚           β”‚   β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”‚   β”œβ”€β”€β”€MultiArrays
β”‚           β”‚   β”‚   β”‚   β”‚       MultiArrays.ino
β”‚           β”‚   β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”‚   β”œβ”€β”€β”€MultipleStripsInOneArray
β”‚           β”‚   β”‚   β”‚   β”‚       MultipleStripsInOneArray.ino
β”‚           β”‚   β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”‚   β”œβ”€β”€β”€OctoWS2811Demo
β”‚           β”‚   β”‚   β”‚   β”‚       OctoWS2811Demo.ino
β”‚           β”‚   β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”‚   └───ParallelOutputDemo
β”‚           β”‚   β”‚   β”‚           ParallelOutputDemo.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Noise
β”‚           β”‚   β”‚   β”‚       Noise.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€NoisePlayground
β”‚           β”‚   β”‚   β”‚       NoisePlayground.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€NoisePlusPalette
β”‚           β”‚   β”‚   β”‚       NoisePlusPalette.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Pacifica
β”‚           β”‚   β”‚   β”‚       Pacifica.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Pintest
β”‚           β”‚   β”‚   β”‚       Pintest.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Ports
β”‚           β”‚   β”‚   β”‚   └───PJRCSpectrumAnalyzer
β”‚           β”‚   β”‚   β”‚           PJRCSpectrumAnalyzer.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€Pride2015
β”‚           β”‚   β”‚   β”‚       Pride2015.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€RGBCalibrate
β”‚           β”‚   β”‚   β”‚       RGBCalibrate.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€RGBSetDemo
β”‚           β”‚   β”‚   β”‚       RGBSetDemo.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€SmartMatrix
β”‚           β”‚   β”‚   β”‚       SmartMatrix.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   β”œβ”€β”€β”€TwinkleFox
β”‚           β”‚   β”‚   β”‚       TwinkleFox.ino
β”‚           β”‚   β”‚   β”‚
β”‚           β”‚   β”‚   └───XYMatrix
β”‚           β”‚   β”‚           XYMatrix.ino
β”‚           β”‚   β”‚
β”‚           β”‚   └───src
β”‚           β”‚       β”‚   bitswap.cpp
β”‚           β”‚       β”‚   bitswap.h
β”‚           β”‚       β”‚   chipsets.h
β”‚           β”‚       β”‚   color.h
β”‚           β”‚       β”‚   colorpalettes.cpp
β”‚           β”‚       β”‚   colorpalettes.h
β”‚           β”‚       β”‚   colorutils.cpp
β”‚           β”‚       β”‚   colorutils.h
β”‚           β”‚       β”‚   controller.h
β”‚           β”‚       β”‚   cpp_compat.h
β”‚           β”‚       β”‚   dmx.h
β”‚           β”‚       β”‚   FastLED.cpp
β”‚           β”‚       β”‚   FastLED.h
β”‚           β”‚       β”‚   fastled_config.h
β”‚           β”‚       β”‚   fastled_delay.h
β”‚           β”‚       β”‚   fastled_progmem.h
β”‚           β”‚       β”‚   fastpin.h
β”‚           β”‚       β”‚   fastspi.h
β”‚           β”‚       β”‚   fastspi_bitbang.h
β”‚           β”‚       β”‚   fastspi_dma.h
β”‚           β”‚       β”‚   fastspi_nop.h
β”‚           β”‚       β”‚   fastspi_ref.h
β”‚           β”‚       β”‚   fastspi_types.h
β”‚           β”‚       β”‚   hsv2rgb.cpp
β”‚           β”‚       β”‚   hsv2rgb.h
β”‚           β”‚       β”‚   led_sysdefs.h
β”‚           β”‚       β”‚   lib8tion.cpp
β”‚           β”‚       β”‚   lib8tion.h
β”‚           β”‚       β”‚   noise.cpp
β”‚           β”‚       β”‚   noise.h
β”‚           β”‚       β”‚   pixelset.h
β”‚           β”‚       β”‚   pixeltypes.h
β”‚           β”‚       β”‚   platforms.cpp
β”‚           β”‚       β”‚   platforms.h
β”‚           β”‚       β”‚   power_mgt.cpp
β”‚           β”‚       β”‚   power_mgt.h
β”‚           β”‚       β”‚   wiring.cpp
β”‚           β”‚       β”‚
β”‚           β”‚       β”œβ”€β”€β”€lib8tion
β”‚           β”‚       β”‚       math8.h
β”‚           β”‚       β”‚       random8.h
β”‚           β”‚       β”‚       scale8.h
β”‚           β”‚       β”‚       trig8.h
β”‚           β”‚       β”‚
β”‚           β”‚       └───platforms
β”‚           β”‚           β”‚   fastspi_ardunio_core.h
β”‚           β”‚           β”‚
β”‚           β”‚           β”œβ”€β”€β”€apollo3
β”‚           β”‚           β”‚       clockless_apollo3.h
β”‚           β”‚           β”‚       fastled_apollo3.h
β”‚           β”‚           β”‚       fastpin_apollo3.h
β”‚           β”‚           β”‚       fastspi_apollo3.h
β”‚           β”‚           β”‚       led_sysdefs_apollo3.h
β”‚           β”‚           β”‚
β”‚           β”‚           β”œβ”€β”€β”€arm
β”‚           β”‚           β”‚   β”œβ”€β”€β”€common
β”‚           β”‚           β”‚   β”‚       m0clockless.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€d21
β”‚           β”‚           β”‚   β”‚       clockless_arm_d21.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_d21.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_d21.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_d21.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€d51
β”‚           β”‚           β”‚   β”‚       clockless_arm_d51.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_d51.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_d51.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_d51.h
β”‚           β”‚           β”‚   β”‚       README.txt
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€k20
β”‚           β”‚           β”‚   β”‚       clockless_arm_k20.h
β”‚           β”‚           β”‚   β”‚       clockless_block_arm_k20.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_k20.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_k20.h
β”‚           β”‚           β”‚   β”‚       fastspi_arm_k20.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_k20.h
β”‚           β”‚           β”‚   β”‚       octows2811_controller.h
β”‚           β”‚           β”‚   β”‚       smartmatrix_t3.h
β”‚           β”‚           β”‚   β”‚       ws2812serial_controller.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€k66
β”‚           β”‚           β”‚   β”‚       clockless_arm_k66.h
β”‚           β”‚           β”‚   β”‚       clockless_block_arm_k66.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_k66.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_k66.h
β”‚           β”‚           β”‚   β”‚       fastspi_arm_k66.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_k66.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€kl26
β”‚           β”‚           β”‚   β”‚       clockless_arm_kl26.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_kl26.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_kl26.h
β”‚           β”‚           β”‚   β”‚       fastspi_arm_kl26.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_kl26.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€mxrt1062
β”‚           β”‚           β”‚   β”‚       block_clockless_arm_mxrt1062.h
β”‚           β”‚           β”‚   β”‚       clockless_arm_mxrt1062.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_mxrt1062.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_mxrt1062.h
β”‚           β”‚           β”‚   β”‚       fastspi_arm_mxrt1062.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_mxrt1062.h
β”‚           β”‚           β”‚   β”‚       octows2811_controller.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€nrf51
β”‚           β”‚           β”‚   β”‚       clockless_arm_nrf51.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_nrf51.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_nrf51.h
β”‚           β”‚           β”‚   β”‚       fastspi_arm_nrf51.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_nrf51.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€nrf52
β”‚           β”‚           β”‚   β”‚       arbiter_nrf52.h
β”‚           β”‚           β”‚   β”‚       clockless_arm_nrf52.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_nrf52.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_nrf52.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_nrf52_variants.h
β”‚           β”‚           β”‚   β”‚       fastspi_arm_nrf52.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_nrf52.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   β”œβ”€β”€β”€sam
β”‚           β”‚           β”‚   β”‚       clockless_arm_sam.h
β”‚           β”‚           β”‚   β”‚       clockless_block_arm_sam.h
β”‚           β”‚           β”‚   β”‚       fastled_arm_sam.h
β”‚           β”‚           β”‚   β”‚       fastpin_arm_sam.h
β”‚           β”‚           β”‚   β”‚       fastspi_arm_sam.h
β”‚           β”‚           β”‚   β”‚       led_sysdefs_arm_sam.h
β”‚           β”‚           β”‚   β”‚
β”‚           β”‚           β”‚   └───stm32
β”‚           β”‚           β”‚           clockless_arm_stm32.h
β”‚           β”‚           β”‚           cm3_regs.h
β”‚           β”‚           β”‚           fastled_arm_stm32.h
β”‚           β”‚           β”‚           fastpin_arm_stm32.h
β”‚           β”‚           β”‚           led_sysdefs_arm_stm32.h
β”‚           β”‚           β”‚
β”‚           β”‚           β”œβ”€β”€β”€avr
β”‚           β”‚           β”‚       clockless_trinket.h
β”‚           β”‚           β”‚       fastled_avr.h
β”‚           β”‚           β”‚       fastpin_avr.h
β”‚           β”‚           β”‚       fastspi_avr.h
β”‚           β”‚           β”‚       led_sysdefs_avr.h
β”‚           β”‚           β”‚
β”‚           β”‚           └───esp
β”‚           β”‚               β”œβ”€β”€β”€32
β”‚           β”‚               β”‚       clockless_block_esp32.h
β”‚           β”‚               β”‚       clockless_i2s_esp32.h
β”‚           β”‚               β”‚       clockless_rmt_esp32.cpp
β”‚           β”‚               β”‚       clockless_rmt_esp32.h
β”‚           β”‚               β”‚       fastled_esp32.h
β”‚           β”‚               β”‚       fastpin_esp32.h
β”‚           β”‚               β”‚       fastspi_esp32.h
β”‚           β”‚               β”‚       led_sysdefs_esp32.h
β”‚           β”‚               β”‚
β”‚           β”‚               └───8266
β”‚           β”‚                       clockless_block_esp8266.h
β”‚           β”‚                       clockless_esp8266.h
β”‚           β”‚                       fastled_esp8266.h
β”‚           β”‚                       fastpin_esp8266.h
β”‚           β”‚                       led_sysdefs_esp8266.h
β”‚           β”‚
β”‚           β”œβ”€β”€β”€I2Cdevlib-ADXL345
β”‚           β”‚       .piopm
β”‚           β”‚       library.json
β”‚           β”‚
β”‚           └───I2Cdevlib-Core
β”‚                   .piopm
β”‚                   library.json
β”‚
β”œβ”€β”€β”€.vscode
β”‚       c_cpp_properties.json
β”‚       extensions.json
β”‚       launch.json
β”‚
β”œβ”€β”€β”€include
β”‚       accel.h
β”‚       bouncing_balls.h
β”‚       buttons.h
β”‚       harmonic_oscillator.h
β”‚       parameters.h
β”‚       programs-common.h
β”‚       README
β”‚       utils.h
β”‚
β”œβ”€β”€β”€lib
β”‚       README
β”‚       readme.txt
β”‚
β”œβ”€β”€β”€src
β”‚   β”‚   .clang-formatxxxx
β”‚   β”‚   accel.cpp
β”‚   β”‚   buttons.cpp
β”‚   β”‚   main.cpp
β”‚   β”‚   utils.cpp
β”‚   β”‚
β”‚   └───programs
β”‚           bouncing_balls.cpp
β”‚           fire.cpp
β”‚           programs-common.cpp
β”‚           rainbow.cpp
β”‚           sparkle.cpp
β”‚
└───test
        .clang_completexxxxxx
        .gcc-flags.jsonxxxx
        .travis.ymlxxxx
        platformio.inixxxxxxxx
        README

Thank you for your help!!!

Indeed, doing a pio lib -g install "jrowberg/I2Cdevlib-ADXL345@0.0.0-alpha+sha.615f132009" downloads an empty library, no source files.

grafik

when it should be containing the files in i2cdevlib/Arduino/ADXL345 at master Β· jrowberg/i2cdevlib Β· GitHub.

Suggestion: Remove jrowberg/I2Cdevlib-ADXL345@0.0.0-alpha+sha.615f132009 from lib deps, download the entire library somewhere, then move the i2cdevlib/Arduino/ADXL345/ folder into the lib/ folder of the project (so that the files are in lib/ADXL345/<files>.

CC @ivankravets for fixing up PlatformIO Registry

Hm actually the I2C core library was upload 2 years ago, and that empty I2Cdevlib-ADXL345 library 6 years ago, not recent at all… You might be better off doing the same above process with the i2cdev core library to get them both on the same logical version.

Thank you! These are good suggestions and I will report back with the results.

Is there anywhere I should file a bug report on this? I am pretty sure I used to be able to use I2CDevLib as a PIO dependency before, but I can double-check tonight.

That worked! It compiles now. Thank you for the help.

My project’s lib/ folder now contains the ADXL345 and I2CDev folders from inside the folder structure of the I2CDevlib zip I downloaded from the project’s Github page.

Note that I couldn’t have these a few layers deep, i.e. I couldn’t copy the whole I2CDevlib folder into lib/, as that didn’t work.

1 Like

See PR

Up-to-date versions of the I2CDev libraries are now in the registry.

So you can use those again with lib_deps instead of the lib/ folder.

1 Like