Comments (9)
Interesting, I suppose obviously that the variable name parameter would be optional
from iot.
Yes. For the config, I think we need to decide if we will support a more general config system or make it GPIO-specific. As worded, it is general. That's one of the design points to nail down.
from iot.
This will be needed for our testing story in the lab. I don't expect this infrastructure to be built-in the library itself, but instead some extra infrastructure we have for our testing strategy. If no-one picks it up, I'll take a look at this soon.
from iot.
@MichaelSimons do you have any thoughts on this from the docker side of things?
from iot.
We currently have IGpioController where user can define mapping for the pins and whatever other additional logic - perhaps we could add an example with that or create a separate library which shows how to do that?
from iot.
[Triage] Can we provide specific use case for why do we need this class? This currently seems to have a low priority and we're considering closing this issue.
from iot.
I'm fine with closing. The main use case for this was in case you have an application that you want to run in many devices (for example you run it via docker containers on many different raspberry pis which are all in a lab) but they might have sensors connected to different pins each, and currently we hardcode the pin number on the application so you would require to wire all those pis exactly the same using the same pins. The idea here was to provide an extensibility class that would check to see if there was a configuration file (xml or json) near the app for different pins to use, or a default.
All that said, I'm fine with having that issue pushed to folks that need this for now, and if we see that a lot of people want it we can consider adding it to our bindings in the future.
from iot.
If you need something like that, it would probably be better yet to test which board has what attached completely in hardware, like using some GPIO pins as hardware revision inputs (pulling them high or low, depending on the attached hardware).
from iot.
[Triage] Regarding this issue, you can always use environment variables for that.
it via docker containers on many different raspberry pis which are all in a lab) but they might have sensors connected to different pins each, and currently we hardcode the pin number on the application
The pattern with container is to use environment variables, you'll just read them in your code. So this can be achieved in a very simple way.
from iot.
Related Issues (20)
- Raspberry Pi Compute Module 4 support not being detected as a Pi4.
- This driver is generic so it can not perform conversions between pin numbering schemes on Orange pi HOT 7
- Callbacks registered via RegisterCallbackForPinValueChangedEvent are not getting called when pin value changes HOT 23
- Support for WS2812 via PWM HOT 17
- Mcp23017 missing Events/RegisterCallbackForPinValueChangedEvent HOT 23
- Raspberry -> SerialPort cannot set a custom baud rate HOT 8
- suggest make this method protected HOT 1
- creating multiple devices at the same address with the tca9548a HOT 6
- AIS Manager is not properly calculating safety information HOT 1
- GPIO driver should add batch write and read function HOT 1
- Build fails running Build.cmd at RGBLedMatrix/samples/Program.cs - CS4014 HOT 1
- MCU support HOT 10
- Support for I2C flags to hold SDA low (Unix) HOT 1
- Missing commonly required options in new Camera module HOT 1
- OperationCanceledException causes libcamera not to be closed properly
- "Error 13 initializing the Gpio driver" with .NET 8 in rootless container HOT 31
- libgpiod v2 support HOT 5
- ILi9341 on Raspberry Pi 4 HOT 6
- Raspberry Pi4 running WIndows 11 - GPIO HOT 8
- Raspberry Pi 3A+ Board Revision 1.1 is not detected/supported during GpioController construction HOT 2
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 iot.