Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] install lib via PlantformIO miss library.json file, PWM issue. #445

Closed
touchmii opened this issue Jan 10, 2025 · 2 comments
Closed
Assignees

Comments

@touchmii
Copy link

when i use plantformio install simplefoc, its miss library.json file, the "lib_archive" = no configuration is required for PWM to work, and although #357 has fixed this bug, installing libraries via platformio still doesn't work, which can make things difficult for many newcomers.

lib_deps = askuric/Simple FOC@^2.3.4

@runger1101001
Copy link
Member

Actually, we have a library.json file: https://github.com/simplefoc/Arduino-FOC/blob/master/library.json

But it does not work as expected. It covers the compilation of the library code, but you also need to have this option active for the compilation of your application code.

So unfortunately this solution does not solve the configuration issue by itself.

@runger1101001 runger1101001 self-assigned this Feb 18, 2025
@runger1101001
Copy link
Member

I'm going to close this issue, as I see no way to solve this other than what we already suggest:

Add the line lib_archive = false to your project platformio.ini.

It has to be on the compilation of your project, and not just the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants