Search found 1346 matches

by deshipu
Mon Sep 03, 2018 10:20 am
Forum: General Discussion and Questions
Topic: LCD UI - M5Stack and the ILI9341
Replies: 11
Views: 1921

Re: LCD UI - M5Stack and the ILI9341

With such a large display, you are likely to have problems with memory if you use the naive approach of just drawing your ui on the display. However, if you can redesign your UI so that it can be represented as a tiled grid of similar images and some sprites, you could make use of my "stage" library...
by deshipu
Wed Aug 29, 2018 2:02 pm
Forum: Announcements and News
Topic: Micropython Workshop in Zürich
Replies: 16
Views: 8213

Re: Micropython Workshop in Zürich

I'm actually not using UART anywhere in that workshop, with a library or without, and that is because MicroPython's support for UART on the ESP8266 is atrocious and certainly not anything I would recommend to beginners.
by deshipu
Tue Aug 14, 2018 11:11 pm
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 24
Views: 2098

Re: Seeking display with driver subclassed from framebuf

Last time I checked we had at least 4 different monochrome modes in there.
by deshipu
Tue Aug 14, 2018 8:11 am
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 24
Views: 2098

Re: I2C commands

@dhylands Have you seen PR4020 ? This addresses the issue of efficiently prepending a command to a buffer such that an I2C stop does not occur between command and data. This is another workaround that only solves the visible problem, but doesn't even try to get into the actual issue. It still force...
by deshipu
Tue Aug 14, 2018 7:57 am
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 24
Views: 2098

Re: Seeking display with driver subclassed from framebuf

My understanding is there are 2 problems here. How much memory is required to store the entire buffer (for a 1-1 copy) and how to efficiently send the buffer over the common buses I2C, SPI and UART. The second problem is self-inflicted and can be easily solved by adding a bit of C code to the frame...
by deshipu
Mon Aug 13, 2018 11:39 pm
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 24
Views: 2098

Re: Seeking display with driver subclassed from framebuf

Why don't we just allocate the framebuffer with some number of "header" bytes which could be used to store the i2c commands? I'm not sure I follow. Care to elaborate a little? Lets say you want a 128x64 pixel (1 bit per pixel) frame buffer. For the actual frame buffer, you need to allocate 128x64/8...
by deshipu
Mon Aug 13, 2018 8:30 pm
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 24
Views: 2098

Re: Seeking display with driver subclassed from framebuf

dhylands wrote:
Mon Aug 13, 2018 7:52 pm
Why don't we just allocate the framebuffer with some number of "header" bytes which could be used to store the i2c commands?
I'm not sure I follow. Care to elaborate a little?
by deshipu
Mon Aug 13, 2018 5:45 pm
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 24
Views: 2098

Re: Seeking display with driver subclassed from framebuf

My hope was to use framebuf as a general purpose object for creating, storing and manipulating image data, similar to PyGame's Surface objects, which then in turn could be used as building blocks for more advanced display drivers and frameworks. For example, you could use it to store images of butto...
by deshipu
Mon Aug 13, 2018 11:50 am
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 24
Views: 2098

Re: Seeking display with driver subclassed from framebuf

It would use up way too much RAM to be practical. If you look at the common 320x240x16 display, it comes up to ~150kB just for the framebuffer. It's much better to generate the pixel data dynamically as you are sending it to the display.
by deshipu
Sun Aug 05, 2018 9:48 pm
Forum: MicroPython pyboard
Topic: Amplitude/PWM
Replies: 7
Views: 851

Re: Amplitude/PWM

You can do that with the DAC, but not with generic GPIO pins.