IO Extender PCF8574X #1804
Replies: 3 comments
-
Posted at 2019-01-11 by @gfwilliams Looks good - would it be possible to tweak the names a little (and add a Also, if you were able to add fields for For example |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-01-17 by DrAzzy I agree with @gfwilliams here - port expanders are much more useful if they all have a consistent API and provided pin objects with read/write/set/reset/mode methods so they worked with the standard functions. That sort of thing is one of the ways that Espruino is a lot more friendly than Arduino. On a related note - is there a method of a pin object for analogRead/analogWrite? It doesn't look like there is - maybe there should be? It would be neat for those PWM-capable port expanders, and external ADC chips.... though maybe the complexities and limitations of those parts would make this less useful than it seems at first glance. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-01-18 by @allObjects I can understand where
is coming from. For enhanced functionality though, I cannot really go for it, because having hardware moved out into a chip, and try in the module to ignore that make the module completely inflated and cumbersome. It is a pain to impose an architecture on an a different one - structurally and behaviorally. Said so does not include having both: support the expander efficiently in its architecture and to support Pin behavior for simple input and output as Espruino does it. I can see my position revised when the portexpander ins integrated natively where things such as digital read and write to pin arrays and clear/setWatch are handled with the knowledge of these capabilities. Why? If you have to setup a complete serial communication multiple times when you can do it in one makes not much sense and worsens the performance experience. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-01-10 by @MaBecker
Please feel free to comment or revise this module for the PCF8574X
Thanks in advanced for all your comments and suggestions to make this module robust and complete to find it's way into the huge hall of modules ;-)
Beta Was this translation helpful? Give feedback.
All reactions