Giter VIP home page Giter VIP logo

pl-micro-epd's Introduction

pl-micro-epd

Library and tools written in CircuitPython to control flexible organic displays from PlasticLogic. Welcome to the docs!

featherWing Feather Wings with flexible 2.1" and 1.4" E Ink display

How To Use

Installation

Example: Hello World!

This is the first, and shortest possible demo and shows how to address the ePaper:

# import digitalio
import busio
import board
from pl_uc8156 import PL_UC8156

# define the pins we will need
clk = board.SCK                             # clock
mosi = board.MOSI                           # MOSI
miso = board.MISO                           # MISO
cs = digitalio.DigitalInOut(board.D5)       # chip-select
rst = digitalio.DigitalInOut(board.D12)     # reset
busy = digitalio.DigitalInOut(board.D9)     # busy

# create the spi-device
spi = busio.SPI(clock = clk, MOSI = mosi, MISO = miso)

# give them all to our driver
display = PL_UC8156(spi = spi, cs_pin = cs, rst_pin = rst, busy_pin = busy)

display.begin(reset = False)
display.text(string = 'Hello world!', x = 1, y = 1, color = BLACK, font_name = 'font5x8.bin')

You should now be able to see the ePaper screen updating. Congratulation! If you feel more like a pro’ this is now the time for the next examples.

License Information

This library is open source!

Author: Andreas Boenicke based on 'adafruit_epd.epd' by Dean Miller

License: MIT License (https://opensource.org/licenses/MIT)

We invested time and resources providing this open source code, please support open source hardware by purchasing this product @Adafruit and @Plasticlogic.

pl-micro-epd's People

Contributors

pljmh avatar robpo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.