Search found 3 matches

by mfitzp
Sun Feb 28, 2021 9:21 pm
Forum: micro:bit boards
Topic: Playing audio files on the micro:bit
Replies: 8
Views: 47068

Re: Playing audio files on the micro:bit

The example above (and this https://gist.github.com/nbogie/4b2e68e1e4217862b358f232b9c38ece ) doesn't seem to work with the new Microbit v2 boards with the built-in speaker -- there is audio, but it's completely distorted/crackling as you'd expect with a mismatch in the format and plays about 2x too...
by mfitzp
Mon Sep 03, 2018 11:35 pm
Forum: ESP8266 boards
Topic: ssd1306 oled: scroll repeats edge pixels
Replies: 6
Views: 4682

Re: ssd1306 oled: scroll repeats edge pixels

Did you find a solution to this? I saw something similar when playing around with a scrolling heart-beat display, but can't remember how I solved it. I think in the end I may have been drawing over the end of the screen buffer when attempting to draw the pixels to 'scroll in', or maybe I just starte...
by mfitzp
Tue Aug 28, 2018 4:52 pm
Forum: ESP8266 boards
Topic: Convert a image and show in OLED display
Replies: 3
Views: 8219

Re: Convert a image and show in OLED display

Might be a little late for you, but you can also do this by converting the image in GIMP and exporting as PBM binary. The PBM format is monochrome, and aside from the header lines (can readline 3x to skip these) is the correct format to load into a framebuffer object. import framebuf with open('my_i...