This library has been archived and replaced by a new library that handles multiple displays:
https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display
This library is no longer supported. Please use the new library
Python library to control an ILI9341 TFT LCD display. Allows simple drawing on the display without installing a kernel module.
License: MIT License
This library has been archived and replaced by a new library that handles multiple displays:
https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display
This library is no longer supported. Please use the new library
Does this work with the ILI9340?
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
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?
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.
disp = TFT.ILI9341(DC, rst=RST, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=64000000))
draw = disp.draw()
image = Image.open('cat.png')
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()
I have ported this library to work with the ILI9340, what would be the best way to merge the two?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.