You are reading a single comment by @DrAzzy and its replies. Click here to read the full conversation.
  • I agree with @Gordon 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.


Avatar for DrAzzy @DrAzzy started