dave25
November 22, 2022, 9:50pm
1
Hello, I’m new to PlatformIO (VS Code, Windows10, node32s for this project) and enjoying it. I’ve installed a few Arduino libraries successfully but trying to install “waspinator/AccelStepper@^1.61” several times and every time it just hangs with a spinning circle on Add in the Add Project Dependency dialog. I’ve tried restarting VS Code and the computer several times. Also tried “pio update” and then “pio pkg update” to no avail.
Should I just follow the instructions for adding a library that is not registered (How to include Arduino Library in PlatformIO? )? Any thoughts are appreciated.
ruben
November 23, 2022, 9:18am
2
Hi,
Have you ever tried to download with lib_deps?
If not, try to write this in platformio.ini:
lib_deps =
https://github.com/waspinator/AccelStepper
Then, you should build your project and the output should be something like this:
Processing uno (platform: atmelavr; board: uno; framework: arduino)
Library Manager: Installing git+https://github.com/waspinator/AccelStepper
git version 2.36.1.windows.1
Cloning into ‘C:\Users\Ruben.platformio.cache\tmp\pkg-installing-_t3cnhsw’…
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 55 (delta 7), reused 43 (delta 7), pack-reused 0
Receiving objects: 100% (55/55), 74.68 KiB | 65.00 KiB/s, done.
Resolving deltas: 100% (7/7), done.
Library Manager: AccelStepper@1.61.0+sha.a9bf2f9 has been installed!
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: Atmel AVR (4.0.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
framework-arduino-avr @ 5.1.0
toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 6 compatible libraries
Scanning dependencies…
Dependency Graph
|-- AccelStepper @ 1.61.0+sha.a9bf2f9
Building in release mode
Checking size .pio\build\uno\firmware.elf
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [ ] 0.4% (used 9 bytes from 2048 bytes)
Flash: [ ] 1.4% (used 444 bytes from 32256 bytes)
================================================================================ [SUCCESS] Took 4.91 seconds ================================================================================
Terminal will be reused by tasks, press any key to close it.
In this way, platformio will add a directory with the library, and the project tree will be like this:
Cheers,
RAR.