RPi librogpio first test release
Tristan M. (2946) 1039 posts |
Edit: edit again: http://members.dodo.com.au/~izabellion1/librogpio.html If you are game, or can tell me what is going on with the source, use this link. /Edit I need feedback from people with gcc set up on whether the static library even links. I haven’t included source yet because it needs work and expansion before I’d feel comfortable with people seeing it. You’ll have to take my word for it that there’s no intentionally malicious code. It should be fine to use as long as care is taken to use the right #define for the pi model for initialisation. Yes, the compiled executables are huge at a bit over 1MB. It’s compiled with gcc. What can I say. Anyway here’s a link to it. Please provide feedback in this thread, but remember this is just the first version which actually functioned without smoke and mirrors. Look at the functions in the header to see what is supported. |
David Pitt (102) 743 posts |
I have had a quick look. (Dropbox and NetSurf are just so not together.) The test built OK on my RPi3. FWIW |
Tristan M. (2946) 1039 posts |
So true. The file had to go Pi Zero → Orange Pi PC → Pi 3 to get it to Dropbox. If you know a better alternative please tell me. Glad it didn’t break horribly. That gives me some confidence to continue. |
Michael Emerton (483) 136 posts |
why not create a samba share on what ever machine you have dropbox mounted on, sharing the dropbox folder, and then mount it using OmniClient / LanMan98? |
Tristan M. (2946) 1039 posts |
Michael, theoretically I could do that with an NFS share too however it’s only half the issue. Dropbox is very NetSurf unfriendly, so it’s hard for someone to open the link and try it. What I need is a solution for uploading files somewhere which has a simple interface which can be accessed easily. I haven’t had any time to work on any additions since I put the archive up. However I did fix some problems with my Orange Pi based NAS which should make things easier for me. Essentially managed to stop lightdm from starting (it’s stubborn!) and stick a big crude heatsink onto the chipset to stop it from overheating during intense activity. I want to add some more GPIO chipset support and device autodetection to make the executables more useful, then maybe move on to i2c and UART. I think I saw that UART HAL support was added in for the Pi 3 recently? |
David Feugey (2125) 2709 posts |
A RISC OS FR subdomain? :) |
rob andrews (112) 200 posts |
Chris Gransden put this up https://www.riscosopen.org/forum/posts/search?page=3&q=dropbox&submit=Go halfway down the page with instuctions |
Tristan M. (2946) 1039 posts |
It looks like I wrote but didn’t send. Typical. David, I like the way you think. It would be an appropriate place. Before I saw these messages today I remembered that I had an ancient and crusty website that apparently I hadn’t touched in nine years or so. It has very little space but it will do better than dropbox for the time being. I grabbed a free domain to slap over the awful ISP issued URL. It seems to work fine in NetSurf so it should be a bit more accessible to people. Rob, the files people put up using the direct links didn’t seem to have the right permissions on DropBox. Maybe they changed something. It seems to bring up the download page that breaks on NetSurf still. I’ll have to have a play for myself when I have some time. |
Tristan M. (2946) 1039 posts |
I haven’t really had any time to actually do much, but I have been reading and planning the next addition. The executable size issue was easily dealt with. Stripping it makes a massive difference. Sure, turning on the audio could be done with probably less than 20 lines of assembler, but that’s beside the point. Still, not too bad for something with a static library. |
Tristan M. (2946) 1039 posts |
I am still working on this! Time has been a little short recently but I’ve added a few functions. I’m also working on a very simple but hopefully effective means of the code choosing the correct GPIO base at runtime. This is sorely needed to make the library useful. A bit more work and testing is needed before the next release. Serial, IIC and SPI will be in a later release. I just want to get something out with a little more functionality. |
Tristan M. (2946) 1039 posts |
Does anybody know what license the source could be released under? I don’t really care what people do with the code. In fact My intent is for people to use the library code itself or look at it and say “I get it! I bet I can make it better”. I’m working on chasing bugs right now after a break for sickness. I just want to get the source out there now, because too much has gotten in the way and it’s taken me far too long to get this far. |
David Feugey (2125) 2709 posts |
BSD or MIT like licence? |
Steve Pampling (1551) 8172 posts |
Yay! Nice to see more and more people who actually understand what open source means. BSD seems to be clearly understood by the GPL brigade. |
Tristan M. (2946) 1039 posts |
I finally added a BSD license and uploaded the source. Please go to my site and click on the RISC OS link on the left to find it. I’m calling it a snapshot release because I honestly haven’t had time to tidy up the loose ends / squash bugs but wanted to get it out there finally. |