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

Solving compatibility with Arduino IDE 1.xx and steps to create an Arduino IDE Library #1

Open
JeffersonRyan opened this issue Nov 22, 2024 · 0 comments

Comments

@JeffersonRyan
Copy link

JeffersonRyan commented Nov 22, 2024

Thanks for the library. I don't tested it yet but if it works It is going to save me days or weeks of work.

To anyone interested,

I could not compile any of the examples provided due to compiler errors:
variable-sized object ********* may not be initialized

I changed the lines

uint16_t wordsarray[words] = {0};
to
uint16_t wordsarray[words];

and
uint16_t ans[no_of_words_to_read] = {0} ;
to
uint16_t ans[no_of_words_to_read] ;

And that allowed me to compile, but I don't know of possible side effects.

Tested with Arduino IDE 1.8.13 and ESP8266 Core v2.7.4

To install the package as a Arduino Ide 1.xx library,
1)decompress the zip in a subdirectory of the libraries directory,
2)put all the *.h and *.cpp files on the root of the library directory
3)Move the examples directory to the root of the library directory
4)Put every *.ino in his own subdirectory of the examples directory with the same name of the file and remove any spaces of the names

For guidance, just look how other libraries are installed

@JeffersonRyan JeffersonRyan changed the title Solving compatibility with Arduino IDE 1.xx and steps to create a Arduino IDE Library Solving compatibility with Arduino IDE 1.xx and steps to create an Arduino IDE Library Nov 22, 2024
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

1 participant