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

How to compile #1

Open
pmknowles opened this issue Jan 7, 2023 · 2 comments
Open

How to compile #1

pmknowles opened this issue Jan 7, 2023 · 2 comments

Comments

@pmknowles
Copy link

I'm very interested in this as an Arduino alternative to Renogy-BT1 but it's not really clear how to use the library. main.cpp seems to contain the extra details from the readme but the link to the Adafruit library is to an ino which doesn't have all the sections that you talk about.

I'd be grateful for any further help you can give.

@neilsheps
Copy link
Owner

neilsheps commented Jan 9, 2023

Hi -- I'm not quite sure what you mean here. I don't have any .ino files (I prefer to use more traditional .h header files, although it should work either way). Iif you want to compile this library in an arduino environment it needs to have this kind of structure, which is basically the same as this Github repo:

/projectroot
/lib
/BT2Reader
--keywords.txt
--library.properties
/src
--BT2PrintFunctions.cpp
--BT2Reader.cpp
--BT2Reader.h
--BT2Utils.cpp
/src
--main.h
--main.cpp (as I have them today)

OR

--myproject.ino (you'd need to combine the code in main.h and main.cpp, which should be straightforward)
`

If your folder structure looks like the above it should compile fine. Let me know if this isn't answering the question. I'm not quite sure what you mean otherwise

@pmknowles
Copy link
Author

pmknowles commented Jan 9, 2023 via email

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

No branches or pull requests

2 participants