Skip to content

Import busio missing #83

Closed
Closed
@DJDevon3

Description

@DJDevon3

# gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial

When using the example with an Ultimate GPS Featherwing it complains busio is missing while using UART. Recommend adding import busio commented out in the import section or use an import try/except for it.

try:
    import busio
except ImportError:
    raise
uart = busio.UART(board.TX, board.RX, baudrate=9600, timeout=10)
gps = adafruit_gps.GPS(uart, debug=False)  # Use UART/pyserial
# gps = adafruit_gps.GPS_GtopI2C(i2c, debug=False)  # Use I2C interface```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions