Install the C Wirinpi libraries

  • In fact, Raspberry Pi is gradually phasing out this library. Currently, Luckfox does not support the WiringPi library.
  • 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?
  • Yes, you are correct. It is also due to the limited RAM resources.
  • 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?
  • 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.
  • Ok, thank you.
    And if I want to use some library, it has to be added by buildroot, or are there other ways?
  • 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.