fizban99 / microbit_ssd1306 Goto Github PK
View Code? Open in Web Editor NEWSimple micropython library for the micro:bit to control the SSD1306 display
License: MIT License
Simple micropython library for the micro:bit to control the SSD1306 display
License: MIT License
Great library, thank you.
I'm experimenting with using show_bitmap to flash between images to see how many frames/second you can expect with show_bitmap. I think I can get about 8 or 9 FPS on a micro-bit v1 before I start to see images drop out.
from ssd1306 import initialize
from ssd1306_bitmap import show_bitmap
import time
initialize()
while 1:
show_bitmap("new_logo")
time.sleep(1.0/8)
show_bitmap("microbit_logo")
time.sleep(1.0/8)
I didn't see a way to change the I2C frequency (changing it with i2c.initi(frequency=....) didn't seem to do anything.
9 FPS isn't terrible but am I missing any obvious way to do better with this method?
This is an awesome project! I've just been using it with the multiple files in project feature of the new micro:bit python editor, https://python.microbit.org/ - and I discovered a little bug in the Asteroid game sample, line 18 refers to showing a bitmap called 888.bin, I think it should say 'splash' instead.
show_bitmap("splash")
not
show_bitmap("888.bin")
Hi, I'd like to use some of the code in this repo in an open source project. Would you be interested in licensing the repo to allow that? An MIT license would be appreciated.
As the title says, can I use add_text to overlay text on top of a bitmap? Trying this stretches the bitmap and inverts it.
Not an issue but I'm trying to make this work using an microbit clone that uses a system font for an 8 x 6 screen rather than 5 x 5 could you give me some pointers as to how to reposition the text on the screen for this to work properly.
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.