Skip to content

pramasoul/micropython-SHARP_Memory_Display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micropython-SHARP_Memory_Display

A [micropython] (http://micropython.org/) driver for [SHARP memory displays] (http://www.sharpmemorylcd.com/aboutmemorylcd.html), including the [SHARP Memory Display Breakout] (https://www.adafruit.com/products/1393) for the [LS013B4DN04] (http://www.sharpmemorylcd.com/1-35-inch-memory-lcd.html) ([application info] (http://www.sharpmemorylcd.com/resources/LS013B4DN04_Application_Info.pdf), [datasheet] (http://www.mouser.com/ds/2/365/LS013B4DN04(3V_FPC)-204284.pdf)) from [AdaFruit] (https://www.adafruit.com/)

Example

from sharp_mem_display import SharpMemDisplay
screen = SharpMemDisplay(2, 'Y5', 96, 96)
screen.clear()
xdim = screen.xdim
ydim = screen.ydim
x = xdim // 2
y = ydim // 2
mls = 255 * xdim // 8
on = True
while True:
    if on:
        on = any(sum(line) < mls for line in screen.lines)
    else:
        on = all(sum(line) == 0 for line in screen.lines)
    for i in range(1000):
        x = (x + rng()%3 - 1) % xdim
        y = (y + rng()%3 - 1) % ydim
        screen.set_pix(x, y, on)
        screen.sync()

About

micropython driver for SHARP memory display

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy