Skip to content

Implement Digital Read & Analog Read counterparts to proposed NINA FW command handlers #76

Closed
@anecdata

Description

@anecdata

@docmollo, @brentru, @tannewt, @ladyada

I'm moving the discussion here for the ESP32SPI side of handling analog and digital reads from ESP32 hardware in the context of CircuitPython ESP32SPI. This issue consolidates #46 (which could be closed since it's subsumed under this one), and the later discussions in #74 (read there for more background on this issue) which were only tangentially related to that issue and will (hopefully) be closed soon (PR submitted).

The present enhancement proposal is to:

  1. Implement setDigitalRead() and setAnalogRead() command handlers in the Adafruit fork of the NINA firmware. setPinMode() already exists. setDigitalWrite() and setAnalogWrite() also already exist. An issue or PR needs to be expanded or opened on the NINA side for this.
  2. Implement set_digital_read() and set_analog_read() in adafruit_esp32spi.py. set_pin_mode() is already implemented. set_digital_write() and set_analog_write() are also already implemented.
  3. Expand the ESP32SPI digitalio.py module for digital reads.
  4. Create an ESP32SPI analogio.py module for analog writes and reads.

Implementation could be roughly in this order. Complete low-level functionality would become available with items 1 and 2 above. Then, expanding ESP32SPI digitalio and adding ESP32SPI analogio would provide higher-level class interfaces analogous to Circuitpython digitalio and analogio usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions