Skip to content
#

circuitpython

Here are 361 public repositories matching this topic...

circuitpython
domdfcoding
domdfcoding commented Nov 8, 2021

CircuitPython version

Adafruit CircuitPython 7.0.0-651-g5572876d2 on 2021-11-07; Pimoroni Pico LiPo (4MB) with rp2040

Code/REPL

import pwmio, countio, board
print("import OK")
counter = countio.Counter(board.GP1)
print("counter OK")
motor = pwmio.PWMOut(board.GP8)
print("motor OK")

Behavior

$ picocom /dev/ttyACM1
Adafruit CircuitPyth
FoamyGuy
FoamyGuy commented Sep 27, 2021

There are missing type annotations for some functions in this library.

The typing module does not exist on CircuitPython devices so the import needs to be wrapped in try/except to catch the error for missing import. There is an example of how that is done here:

try:
    from typing import List, Tuple
except ImportError:
    pass

Once imported the typing annotations for the argum

FoamyGuy
FoamyGuy commented Sep 27, 2021

There are missing type annotations for some functions in this library.

The typing module does not exist on CircuitPython devices so the import needs to be wrapped in try/except to catch the error for missing import. There is an example of how that is done here:

try:
    from typing import List, Tuple
except ImportError:
    pass

Once imported the typing annotations for the argum

FoamyGuy
FoamyGuy commented Sep 27, 2021

There are missing type annotations for some functions in this library.

The typing module does not exist on CircuitPython devices so the import needs to be wrapped in try/except to catch the error for missing import. There is an example of how that is done here:

try:
    from typing import List, Tuple
except ImportError:
    pass

Once imported the typing annotations for the argum

FoamyGuy
FoamyGuy commented Sep 27, 2021

There are missing type annotations for some functions in this library.

The typing module does not exist on CircuitPython devices so the import needs to be wrapped in try/except to catch the error for missing import. There is an example of how that is done here:

try:
    from typing import List, Tuple
except ImportError:
    pass

Once imported the typing annotations for the argum

FoamyGuy
FoamyGuy commented Sep 27, 2021

There are missing type annotations for some functions in this library.

The typing module does not exist on CircuitPython devices so the import needs to be wrapped in try/except to catch the error for missing import. There is an example of how that is done here:

try:
    from typing import List, Tuple
except ImportError:
    pass

Once imported the typing annotations for the argum

Improve this page

Add a description, image, and links to the circuitpython topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the circuitpython topic, visit your repo's landing page and select "manage topics."

Learn more