Hackaday.io Hackaday.io
Projects
Recently Updated Most Likes Newest Project Lists
Discover Contests Courses Stack
More
Courses Tutorials Events Hackerspaces Profiles Hackaday.com Tindie Marketplace
Sign up Log in
Close
0%
0%

Various Micropython Libraries and Drivers

A collection of miscellaneous libraries and drivers for Micropython

deʃhipudeʃhipu
Following Follow project
Liked Like project

Become a Hackaday.io member

Not a member? You should Sign up.

Already have an account? Log in.

Sign up with Github
Sign up with Twitter
OR
Forgot your password?

Just one more thing

To make the experience fit your profile, pick a username and tell us what interests you.

Pick an awesome username
hackaday.io/
Your profile's URL: hackaday.io/username. Max 25 alphanumeric characters.
Pick a few interests
Projects that share your interests
People that share your interests

We found and based on your interests.

Choose more interests.

OK, I'm done! Skip
Join this project
Similar projects worth following
13.1k views
0 comments
36 followers
22 likes
  • Description
  • Details
  • Files 0
  • Components 0
  • Logs 19
    • View all
  • Instructions 0
  • Discussion 0
View Gallery
13.1k
0
36
22

Team (1)

  • deʃhipudeʃhipu

Join this project's team
Software
ongoing project
micropython ESP8266 python library Driver

This project was created on 05/10/2016 and last updated 5 years ago.

Description

I'm collecting the various Micropython libraries (and drivers for various sensors and other devices) that I'm writing here. Some of them are specific to the ESP8266 port, some are general.

Project Logs
Collapse

  • OLED Displays

    deʃhipu • 10/17/2017 at 00:01 • 0 comments

    The code is at https://bitbucket.org/thesheep/micropython-oled/overview

    See the README for explanation and examples.

    This time I wrote drivers for something that mostly already had its drivers in MicroPython — the monochrome OLED displays. I did that, because I wasn't happy with the existing drivers — they are a bit elaborate in terms of indirection and inheritance. Sure, code reuse and so on, but not very nice for constrained platforms. So I did my own, trying to optimize them. I also exposed some useful functions, like flipping and hardware scrolling.

    I will hopefully add some more exotic displays there, as I get specimen to test on.

  • MAX31855 Thermocouple Amplifier

    deʃhipu • 02/08/2017 at 23:45 • 0 comments

    The code is at https://bitbucket.org/thesheep/micropython-max31855

    See the docstrings for usage.

  • SI7021 Temperature and Humidity Sensor

    deʃhipu • 02/08/2017 at 23:45 • 0 comments

    The code is at https://bitbucket.org/thesheep/micropython-si7021

    See the docstrings for usage.

  • Bosch BNO055 IMU sensor

    deʃhipu • 02/08/2017 at 23:44 • 0 comments

    The code is at https://bitbucket.org/thesheep/micropython-bno055

    See the docstrings for usage example.

  • SHARP GP2Y0E03 Distance Sensor

    deʃhipu • 09/09/2016 at 13:29 • 0 comments

    This is a small infra-red distance sensor with I²C interface. It can measure distances from 4 to 127cm. The source code is available here: https://bitbucket.org/thesheep/micropython-gp2y0e03/src

    Example use:

    from machine import I2C, Pin
    import gp2y0e03
    
    i2c = I2C(Pin(5), Pin(4), freq=100000)
    s = gp2y0e03.GP2Y0E03(i2c)
    s.read()

  • µDisplay -- Drivers for 6 Different RGB Displays

    deʃhipu • 08/28/2016 at 17:51 • 1 comment

    This is a collection of 6 different displays drivers for TFT and OLED RGB displays. I finally took the time to refactor all my drivers, pull out the common parts, and put them all in a single library. Don't worry, each driver is in a separate file, so you can copy only the parts that you are actually using onto your board.

    The source is at https://bitbucket.org/thesheep/micropython-display

  • DS1307, DS3231, and PCF8523 Real-Time Clocks

    deʃhipu • 08/17/2016 at 14:50 • 0 comments

    Here's a library for handling a bunch of popular I2C-based real-time clock chips: https://github.com/adafruit/Adafruit-uRTC

    And here is the documentation for it: http://micropython-urtc.readthedocs.io/en/latest/

    As you can guess from the naming, I was supported by Adafruit Industries to write this one (but of course it will work with any breakout boards for those chips, not just theirs). I will most likely create more libraries for them.

  • SH1106 OLED Display

    deʃhipu • 07/15/2016 at 13:53 • 0 comments

    Another basic display driver. This one uses the framebuf module, as does the SSD1306 driver in Micropython's source tree.

    https://bitbucket.org/thesheep/micropython-ili9341/src/tip/sh1106.py

    The use is pretty much the same.

  • IS31FL3731 Charlie-Plexed LED Matrix

    deʃhipu • 07/09/2016 at 12:36 • 0 comments

    This driver is for a monochromatic matrix of up to 144 LEDs, with hardware PWM and blinking. It also has 8 frames of memory, and can fade between them, or play animations with them -- optionally synchronized to music! The code is at https://bitbucket.org/thesheep/micropython-is31fl3731/src/tip/is31fl3731.py

    Example use:

    import is31fl3731
    from machine import I2C, Pin
    i2c = I2C(Pin(5), Pin(4))
    display = is31fl3731.CharlieWing(i2c)
    display.fill(127)
    display.pixel(0, 0, 2, True)
    display.blink(540)

  • SSD1606 E-ink display

    deʃhipu • 07/01/2016 at 13:43 • 5 comments

    This is a relatively cheap SPI E-ink display that you can find on tindie. It has 4 shades of grey per pixel, and 172x72 resolution.

    The code is at https://bitbucket.org/thesheep/micropython-ili9341/src/tip/ssd1606.py

    Example code:

    from machine import Pin, SPI
    import ssd1606
    spi = SPI(miso=Pin(12), mosi=Pin(13, Pin.OUT), sck=Pin(14, Pin.OUT))
    display = ssd1606.SSD1606(172, 72, spi, Pin(4), Pin(5), Pin(2), Pin(15))
    display.fill(3)
    display.pixel(10, 10, 0)
    display.show()

    And the display:


View all 19 project logs

Enjoy this project?

Share

Discussions

Log In/Sign up to comment

Become a Hackaday.io Member

Create an account to leave a comment. Already have an account? Log In.

Sign up with Github
Sign up with Twitter
OR

Similar Projects

A straightforward project using an amazing, little IPS TFT Display with an Arduino to display some colored graphics and animations.
Project Owner Contributor

Project 020: Arduino 1.3" IPS TFT Display Project

ElectorialsElectorials

The 2016 Hackaday Prize
motorcycle made smart with Atmega, hall effect sensor and OLED
Project Owner Contributor

SMARTDAX

TedTed

A guy gave me this display back in college about 10 years ago. I finally got around to it.
Project Owner Contributor

VFD Shenanigans

GabrielGabriel

A 160x80 color LCD display that goes on top of the Trinket
Project Owner Contributor

Trinket M0 TFT

deʃhipudeʃhipu

Does this project spark your interest?

Become a member to follow this project and never miss any updates

Going up?

About Us Contact Hackaday.io Give Feedback Terms of Use Privacy Policy Hackaday API

© 2022 Hackaday

Yes, delete it Cancel

Report project as inappropriate

You are about to report the project "Various Micropython Libraries and Drivers", please tell us the reason.

Send message

Your application has been submitted.

Remove Member

Are you sure you want to remove yourself as a member for this project?

Project owner will be notified upon removal.