Skip to content
PyDevicesPublic

About

The OmniPython package library's mip index, served from GitHub Pages

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

The index's web page, listing its packages

lib

The mip index for OmniPython's libraries, board configs and drivers, at https://pydevices.github.io/lib.

Install

On a board with Wi-Fi, in the REPL:

import mip
mip.install("pydevices", index="https://pydevices.github.io/lib")

From a computer, onto a board on USB:

mpremote mip install --index https://pydevices.github.io/lib pydevices

Try it

With the unix port of MicroPython, install pygraphics into lib/ and draw:

micropython -m mip install --index https://pydevices.github.io/lib --target lib pygraphics
import pygraphics
from pygraphics import FrameBuffer, RGB565

fb = FrameBuffer(bytearray(160 * 80 * 2), 160, 80, RGB565)
fb.fill(0x0000)
card = fb.round_rect(8, 8, 64, 40, 8, 0xF800, f=True)
dot = fb.circle(116, 28, 20, 0x07E0, f=True)
label = pygraphics.text16(fb, "Hello", 8, 56, 0xFFFF)
print("changed:", card + dot + label)
fb.save("hello.bmp")
changed: Area(8, 8, 128, 64)

hello.bmp: a red rounded rectangle, a green circle and the word Hello

Docs · Examples · Roadmap

Made by PyDevices.

About

The OmniPython package library's mip index, served from GitHub Pages

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages