Comments (3)
It's not the most useful of feedback and there doesn't even seem to be a lot of useful guidance out there for it, but for basic GPIO access you should drop the BCM2835 library and switch to libgpio- the new standardised way of accessing GPIO on Linux.
Things like libbcm2835 are holdouts from a bygone era where register bitbanging was the only reasonable way to do GPIO on the Pi and are only really useful for performance-sensitive GPIO access, and some of the Pi specific features that don't have a good cross-platform alternative yet.
There's no guarantee the BCM2835 library will be maintained in the future and its contemporary - wiringPi - was recently deprecated.
Making this switch will start to be on people's TODO lists, so depending on what you want to learn/do with C++ on the Pi in the future it might be worth a look!
from fanshim-python.
@Gadgetoid Thanks a lot, that's very helpful! I did look into libgpio before but at that time it did not seem to be very well documented...
from fanshim-python.
@daviehh yeah- I found the same with libgpio. Documentation was scarce, as were real-world examples of it being used. The more code out there using it, the more working examples people will have to reference, and hopefully that will get what's been a very slow ball rolling with respect to its adoption.
Good effort switching over to it- I've added a link to your library in our README.
from fanshim-python.
Related Issues (20)
- install.sh fails on ubuntu server 21.04 HOT 2
- Fan software not working HOT 2
- Fan operating continuously, can't control it (or the LED) with fanshim HOT 1
- Default GPIO Pins HOT 1
- commands work but fan doesn't start HOT 2
- import fanshim crash HOT 2
- Fan always on and not responding to button or automatic code HOT 3
- doesn't install/detect on some systems HOT 2
- #104 breaks on Alpine Linux HOT 1
- Fanshim installation fails on Alpine Linux aarch64 HOT 1
- Service installation hangs on Raspberry Pi OS Lite 64bit April 4th 2022 HOT 2
- Running install-service.sh on LibreELEC 5.10.95 produces syntax errors
- The fan does not work HOT 6
- Dual case GPIO 15 (UART RX)
- Requesting AUR package
- Not working on DietPI
- automatic.py makes the LED bright green between cycles HOT 1
- Fan does not go off if the PI is powered down HOT 3
- FanShim service run correct but fan is still running HOT 2
- Example readme missing low-temp high-temp arguments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fanshim-python.