Skip to content

Conversation

@brentru
Copy link
Member

@brentru brentru commented Jun 6, 2019

This pull request adds mock DigitalIO and Pin pin support for the set_pin_mode and set_digital_write methods within adafruit_esp32spi.py (via PR #38).
https://circuitpython.readthedocs.io/en/4.x/shared-bindings/digitalio/__init__.html#module-digitalio

Usage Example

import adafruit_esp32spi.digitalio

led = adafruit_esp32spi.digitalio.DigitalInOut(esp, 25)

led.direction = adafruit_esp32spi.digitalio.Direction.OUTPUT

while True:
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(0.5)

Test Hardware: Feather M4 + AirLift FeatherWing (Green LED connected to ESP GPIO 25)

@brentru brentru requested a review from a team June 6, 2019 21:23
@brentru brentru merged commit e199972 into adafruit:master Jun 6, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants