PokerS
August 14, 2024, 6:50am
1
Refer to this article:
https://wiki.radxa.com/Rock/wiringX
and:
I have successfully built and installed the dynamic link library on my system and compiled an application to test the PIN_3 outputs with the sample code, but I can’t seem to successfully control the GPIO ports.
This article is ancient and no longer relevant.
@Nasca
PokerS
August 15, 2024, 2:56am
3
Thank you for your reply, are there any support programs for the Rock 2 Series? For development boards, I think wiringX is a good GPIO solution.
Nasca
August 15, 2024, 3:30am
4
This needs to be ported and adapted, which will take a while.
PokerS
August 15, 2024, 4:33am
5
Thanks and looking forward to it!
Is there an disk image anywhere?
I had a brief look and there is android 2a images but wondering if anyone had managed a linux image
Apols as looked in products and the releases github and forgot the docs is seperate
Nasca
August 16, 2024, 8:43am
9
Hello @PokerS , there is also a gpio library called libmraa that may be faster to port, you can check out its github repository , and MRAA has more API interfaces than WiringX.
PokerS
August 16, 2024, 9:15am
10
Thank you! I’m very interested in it and will try to port and use it on Rock 2F/2A.
Nasca
August 16, 2024, 9:47am
11
I’m porting libmraa to ROCK 2A/2F now.
Nasca
August 16, 2024, 11:54am
12
Hi @PokerS , I have finished porting mraa to ROCK 2A/2F just now, you can try it.
Here is the step,
git clone https://github.com/nascs/mraa.git
cd mraa
git checkout -b Add_Radxa_ROCK2_Series_Support origin/Add_Radxa_ROCK2_Series_Support
mkdir build
cd build
cmake .. && make -j$(nproc) && sudo make install && sudo ldconfig
for, more info, you can refer to https://github.com/nascs/mraa/tree/Add_Radxa_ROCK2_Series_Support , and I’ll add mraa documents to radxa docs of ROCK 2A/2F next week.
2 Likes
Nasca
August 16, 2024, 11:57am
13
And I’ll do a full test on ROCK 2A/2F next week.
1 Like
PokerS
August 16, 2024, 12:38pm
14
@Nasca That’s great news, I’ll try it out, thanks for all your hard work!
1 Like
Nasca
August 19, 2024, 5:39am
15
Hi @PokerS , I have completed the mraa testing on the ROCK 2A/2F and have pushed the changes to GitHub, you can fetch the latest code.