-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea to make Display GPIO available as Inputs #266
Comments
@nevilh That's inspired! I think this is a really neat idea, and would indeed be achievable, but there would be a few complexities in the implementation... Firstly, it would almost certainly stop the light sensing code from working properly. This isn't a reason to reject this feature request IMHO, but i'm pretty sure we'd have a rider in the documentation stating that "if you use these pins, then light sensing will be disabled" or something like that. Secondly, these pins would have different temporal characteristics than the other pins, which might be a bit weird (because we'd effectively have to "cache" the most recently sampled value, and that's what you'd get if you performed a getDigitalValue() call on the pin). In other words, the update rate would be slower than the other pins, and it might be difficult to explain that to kids etc. I guess whether the additional complexity is worthwhile comes down to the application domain. Do we think there are enough compelling applications that would need this, to warrant the complexity we'd have to introduce? What do you think? I guess it would have to be something that needs both a lot of GPIO inputs and the display to be running... |
Hi Joe, Thanks for your response. As far as reasons to add this feature are concerned here are my thoughts:-
But for more specific applications where it could be a benefit...
Anyway, it may not be the highest priority ‘enhancement request’ but I thought it was worth officially posting it, rather than just have it rattling around in my head. And if it can be done I think it may have merit. And for the applications that it might enable, it would probably be for people who understood any restrictions it came with e.g. lack of light sensor, slower response time, etc. Cheers, Nevil |
Thanks @nevilh! Sounds pretty convincing to me. :-) |
Could the DAL be changed so that for a brief moment the display multiplexer Row & Col are tri-stated allowing the logic input state of P3, P4, P6, P7, P9 & P10 be captured?
They could then be used as GPIO inputs, so long as the driving device has a high value series resistor, say 10k+.
The 10k would ensure that during normal display driving there was no conflict between the 2 driving sources (but the Display LED current would be fractionally reduced by <0.3mA which I think would be hardly noticeable)
Cheers,
Nevil
The text was updated successfully, but these errors were encountered: