Page 1 of 1

Install the C Wirinpi libraries

Posted: 2024-01-24 9:03
by tortuga
Hello, are the C WiringPi libraries compatible with this board? If so, which operating system do you recommend installing Ubuntu, Buildroot or AlpineLinux?
https://projects.drogon.net/raspberry-p ... d-install/
Thank you

Re: Install the C Wirinpi libraries

Posted: 2024-01-25 12:54
by Luckfox Taylor
In fact, Raspberry Pi is gradually phasing out this library. Currently, Luckfox does not support the WiringPi library.

Re: Install the C Wirinpi libraries

Posted: 2024-01-26 9:24
by tortuga
Luckfox Taylor wrote: 2024-01-25 12:54 In fact, Raspberry Pi is gradually phasing out this library. Currently, Luckfox does not support the WiringPi library.
Thanks for answering, so the only way to compile an application written in C is through cross compilation using Buildroot, is that correct?

Re: Install the C Wirinpi libraries

Posted: 2024-01-26 9:41
by Luckfox Taylor
Yes, you are correct. It is also due to the limited RAM resources.

Re: Install the C Wirinpi libraries

Posted: 2024-03-30 23:23
by Radup
I just bought the Pico Mini (will probably take a month or so to get it), but I am interested in how exactly to develop software for it.
I have over 20 years of experience with C, I have some bit of experience with Linux and embedded devices, but I never developed for Linux with very limited resources.
So how would one go from a "hello world" c program to actually running it on the device?
Is it enough to cross compile it then copy it via scp on the Pico Mini and then run it there? Or there are extra steps?

Re: Install the C Wirinpi libraries

Posted: 2024-04-01 5:54
by Eng38
Radup wrote: 2024-03-30 23:23 I just bought the Pico Mini (will probably take a month or so to get it), but I am interested in how exactly to develop software for it.
I have over 20 years of experience with C, I have some bit of experience with Linux and embedded devices, but I never developed for Linux with very limited resources.
So how would one go from a "hello world" c program to actually running it on the device?
Is it enough to cross compile it then copy it via scp on the Pico Mini and then run it there? Or there are extra steps?
Yes, for C programs, they can be run after being cross-compiled on the host and copied to Pico Mini.

Re: Install the C Wirinpi libraries

Posted: 2024-04-01 8:02
by Radup
Ok, thank you.
And if I want to use some library, it has to be added by buildroot, or are there other ways?

Re: Install the C Wirinpi libraries

Posted: 2024-04-01 8:59
by Eng38
Radup wrote: 2024-04-01 8:02 Ok, thank you.
And if I want to use some library, it has to be added by buildroot, or are there other ways?
Yes, adding a library is normally done through buildroot, and when cross-compiling the program, specify the library, header file directory and library path.