![]() ![]() The confusion I do see regularly is from people who have libraries which are not compliant with the specification. As long as the library is compliant with the 1.5 format described in the specification, it should be fine for Library Manager. That links to the Arduino Library Specification. I have seen some library authors take this approach. ![]() This is only an example to demonstrate that the examples menu is organized according to subfolders. Of course, you can chose the folder structure and names as you like. This will result in the universal examples being under the File > Examples > MyLibrary > Universal menu, the ESP32-specific examples being under the File > Examples > MyLibrary > ESP32 menu, and the ESP8266-specific examples being under the File > Examples > MyLibrary > ESP8266 menu. What you could do is put the architecture-specific examples under dedicated subfolders: ARDUINO MANAGER WIFICC3000 EXAMPLE CODEHowever, if there is a significant amount of code in the library shared between the two architectures, then that would result in extra effort to maintain the duplicate code. ![]() The closest thing would be for you to split the library into two libraries one for ESP8266, the other for ESP32. However, neither of those are of help to you. ![]() Examples of libraries that don't have an entry in their library.properties "architectures" field matching the architecture of the currently selected board are shown under the File > Examples > INCOMPATIBLE menu.Examples of boards platform bundled libraries are only shown in the File > Examples menu when a board of that platform is selected.The Arduino IDE does have some features along these lines: Is there a way to tell Arduino IDE to only show Exampel#1 if ESP8266 is selected and only show Example#2 when ESP32 is selected? I would like to add examples that utilize interrupts in the processor, the problem is that both processors handle interrupts slightly different. Will it "break" if I just change the name in the properties file? I have tried to figure it out with the library specification page but cant figure it out.Īlso is there a way to change the name in the library manager once the library is published? So version 1 is published and released to the library manger, I have added a few examples but would like to add more.Īll examples I've written are generic but I would like to add examples that utilize interrupts in the processor, the problem is that both processors handle interrupts slightly different. The user doesn't need to change any code everything is done behind the scenes. The library uses preprocessor " #if defined (ESP8266)/ #if defined (ESP32)" too determine witch processor is used to choose the correct implementation. Library for configuring ESP8266/ESP32 modules WiFi credentials and custom parameters at runtime with captive portal.I've written an Arduino library for ESP32 and ESP8266. ARDUINO MANAGER WIFICC3000 EXAMPLE LICENSEWiFi Configuration manager with web configuration portal for Espressif ESPx boards, by tzapu Author tzapu Maintainer tablatronix Website Category Communication License MIT Library Type Contributed Architectures esp8266, esp32 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |