Giter Club home page Giter Club logo

adafruit_python_ili9341's Introduction

adafruit_python_ili9341's People

Contributors

ladyada avatar ly0 avatar makermelissa avatar matt448 avatar tdicola avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adafruit_python_ili9341's Issues

ILI9340

Does this work with the ILI9340?

Missing initialization step?

I am using the Adafruit PiTFT 2.8 (w/buttons). After changing SPI_DEVICE = 1, the example works, but ONLY after I have run /usr/bin/fbi once to display an image. It appears that fbi does something that this script does not. No errors, just a blank screen

Really slow

It seems that the disp.display is really really slow...
Anyone can confirm it?
Is there a way to noe redraw the entire screen but only the modified portion of the screen?

Memory leak in disp.clear()

I'm using the Library with a Raspberry Pi 2 and a cheap 2.4" display and I am getting an increase in memory everytime I call clear().

As a workaround i currently use the following change:

def clear(self, color=(0,0,0)):
"""Clear the image buffer to the specified RGB color (default black)."""
width, height = self.buffer.size
#self.buffer.putdata([color]_(width_height))
draw = ImageDraw.Draw(self.buffer)
draw.rectangle([(0,0),(width,height)], fill=color)
del draw

As a side effect I'm getting higher framerates in my particular usecase.

how to display image and draw At the same time

Create TFT LCD display class.

disp = TFT.ILI9341(DC, rst=RST, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=64000000))

Initialize display.

draw = disp.draw()

Load an image.

image = Image.open('cat.png')

Resize the image and rotate it so it's 240x320 pixels.

image = image.rotate(90).resize((240, 320))

draw.ellipse((10, 10, 110, 80), outline=(0,255,0), fill=(0,0,255))
disp.display(image)
disp.display()

ILI9340 port

I have ported this library to work with the ILI9340, what would be the best way to merge the two?

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.