Home Creators Posts Import Register Favorites Logout

Content

Yaaaay!
I made slight mods to my git repo ESP32Lib to make it a Arduino library.
https://github.com/bitluni/ESP32Lib
It was also the initial intention to finally have a central place with all the reoccurring code. It can also be used as a git submodule. Wasn't as difficult as I have imagined. It's marked as included but will probably take a bit to reach the library manager. ( https://github.com/arduino/Arduino/issues/8497 )

If you ever want to make an Arduino lib:
https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ#how-can-i-publish-a-new-release-once-my-library-is-in-the-list

Still have to clean up document and implement a few nice examples...

As soon it's done I make a beginner tutorial showing all it's features.

Comments

Sergionn

Hi, Bitluni, by the way, don't you think to to complete (if it possible with new knowledges of course) your lib with NTSC output feature? Also it will be very claimed in US.

bitluni

I will revisit the composite video libs and add them. Ntsc color should be manageable with the apll clock

bitluni

I'll try it. Was using platform io last week. It annoyed me since it made copies of the imported projects and created a huge mess. But it should be manageable

Ristomatti Airo

What do you mean with imported projects? Kind of sounds like you're approaching it the wrong way but I might know what you mean. The idea with the projects is similar to how npm works which you've likely used for JavaScript(?). This allows you to have a specific version of a library for your project without having to worry about it breaking if the library is updated. You can also install the libraries globally, although it is not their recommended way.

bitluni

I have the arduino projects in a certain folder. when I want to use pio I have to import arduino project.. then it's get copied in some folder and structure I never configured. the git gets copied too and I have different working copies and it becomes a mess. or is there a simple way of editing arduino projects w/o them being copied?

Ristomatti Airo

I think it copies the dependencies under .piolibdeps for the compilation. You can set a property in the project settings that'll tell it where to look for the #included files. Check the answer by Ivan (the founder) here: <a href="https://community.platformio.org/t/including-arduino-libraries-together-with-private-libraries-solved/930" rel="nofollow noopener" target="_blank">https://community.platformio.org/t/including-arduino-libraries-together-with-private-libraries-solved/930</a> ... I'm guessing this is what you're after?

Ristomatti Airo

I did that initially but then found it better to have each project have their own dependencies defined with the lib_deps property. You can also put git repos as dependencies. They'll get cloned under .piolibdeps during compilation. You can at any point safely delete the folder and it'll fetch the dependencies again.

bitluni

and that's the point where are don't care anymore... it's not very usable.. I just wanted a proper editor that is able to compile it.

Ristomatti Airo

Agree it's extra effort compared to Arduino IDE. To me it seemed much less painful than to have no static code checking, being able to jump to definition / library source etc. I've just created a template folder that has the settings I need, then I'll make a copy when starting something new. But each to their own, if it doesn't feel usable even to a hacker like you, they'll need to continue improving. :) Maybe it didn't feel so much hassle to me as I had previously been using VSCode for JavaScript stuff, and didn't want to go all spartan with the Arduino IDE when starting out. BTW VSCode != PlatformIO. There's also an Arduino extension and a Microsoft C++ extension (which pio also uses). Initially I used that and it gave the static code analysis and build/upload buttons similarly as A. IDE. Maybe that could work as a more decent editor? I don't remember it copying any folders.

bitluni

In Arduino it's published already! Pio needs approval, yet