diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-07-05 17:31:06 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2022-07-05 17:44:24 +0000 |
| commit | ea474f9870e17045da77adf01cb0034cbf45bcf1 (patch) | |
| tree | 9351bdfc13fd2707eb05925f65b2335086422b64 | |
| parent | use config.py for board rev selection, dev mode (diff) | |
| download | firmware-ea474f9870e17045da77adf01cb0034cbf45bcf1.tar.gz firmware-ea474f9870e17045da77adf01cb0034cbf45bcf1.zip | |
dont crash in boot.py with stock CircuitPython
| -rw-r--r-- | boot.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,10 @@ import digitalio import storage import config as board -supervisor.set_usb_identification("s-ol", "0x33.board", 0x732D, 0x3362) +try: + supervisor.swet_usb_identification("s-ol", "0x33.board", 0x732D, 0x3362) +except AttributeError: + pass col = digitalio.DigitalInOut(board.matrix_pins[0][0]) row = digitalio.DigitalInOut(board.matrix_pins[1][-1]) |
