Skip to content
#

CircuitPython

circuitpython logo

CircuitPython is a beginner-friendly implementation of Python, optimised to run on microcontrollers and single board computers. The design facilitates using code on supported boards via USB or Bluetooth file transfer.

Here are 424 public repositories matching this topic...

circuitpython
rsbohn
rsbohn commented May 22, 2022

CircuitPython version

Adafruit CircuitPython 7.3.0-rc.2 on 2022-05-21; Raspberry Pi Pico with rp2040

Code/REPL

b = (0xFEED).to_bytes(2,"little")
# next line is not correct code
x = int.from_bytes(b, 2, "little")
print(x==0xFEED)

Behavior

C Python raises a TypeError if too many arguments:

int.from_bytes(bytes([0xFE,0xED]), 2, "big")
Tracebac

bill88t
bill88t commented Apr 20, 2022

While it is very stupid to deploy Ljinux from a windows machine, I feel like it should be doable.
Using GNU/Make on Windows would certainly be a way, even though, a very weird one.
A powershell script should be able to do it, but WSL may be an easier way.
However I have no bare metal windows installations at the moment to test this stuff.

enhancement help wanted good first issue
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

Created by Adafruit Industries

Released July 19, 2017

Latest release 17 days ago

Repository
adafruit/circuitpython
Website
circuitpython.org
Wikipedia
Wikipedia

Related Topics

cpython internet-of-things iot language microcontroller micropython python