Re: Bug in softwire library
Posted: Fri Apr 24, 2020 5:03 pm
You have done what is appropriate, reported an "issue" to the library author. In the spirit of Open Source, the author can elect to act on your (STM32-centric) concern or simply ignore you as it may be that the code posted is working fine for his/her intended use.Phono wrote: Thu Apr 23, 2020 6:31 pm ...
I reported an issue in the github of stevemarple, the author of this library, but it seems that he is not involved any more in this section. So I put it here, to open a discussion about the best way to fix it....
You have the choice of branching the code into your github and fixing same for STM32. You could also just "fix" the code for your personal use, either in /Arduino/libaries or simply embed the .h/.cpp into 2 tabs of your ArduinoIDE sketch. You could request the original author to pull your github changes to broaden the usefulness but some authors may refuse as the maintenance effort would generally necessitate procurement of test hardware. If you maintain a "STM32-centric" github, are your intents to maintain the code across all hardware listed as STM32duino? Big effort, perhaps.
Fact is, open source code carry limited (very limited) on post-release maintenance. The author may or may not accept patches and enhancements.
My "Ray" take on all of this is to be totally self-sufficient. I take what is available and "bend" it to my needs. I have years worth of modified Adafruit code in numerous sketches across multiple microcontroller projects. My project folders are organized something like:
Every one of those running programs are fully working and copies of the appropriate 3rd libraries exist in every local folder. Hard drive storage is cheap and ASCII code compresses to a nice, small backup. If I write an article to publish, I know the required libraries are in the published ZIP.Arduino/RaySketches/STM32F1/MapleMini/GPSclock-Barometer/LCD/ILI9341/SketchName/SketchName.ino
Arduino/RaySketches/STM32F1/MapleMini/GPSclock-Barometer/LCD/1602/SketchName/SketchName.ino
Arduino/RaySketches/STM32F1/MapleMini/GPSclock-Barometer/LCD/I2C_Oled/SketchName/SketchName.ino
Arduino/RaySketches/STM32F1/MapleMini/GPSclock-Barometer/LCD/SPI_Oled/SketchName/SketchName.ino
My next need for a MapleMini project with SPI OLED is half-written.
Ray