Search found 1353 matches

by deshipu
Tue Aug 14, 2018 8:11 am
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 30
Views: 4089

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: 30
Views: 4089

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: 30
Views: 4089

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: 30
Views: 4089

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: 30
Views: 4089

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: 30
Views: 4089

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: 1218

Re: Amplitude/PWM

You can do that with the DAC, but not with generic GPIO pins.
by deshipu
Thu Jul 19, 2018 1:21 pm
Forum: General Discussion and Questions
Topic: EuroPython 2018
Replies: 2
Views: 684

Re: EuroPython 2018

I just added MicroPython/CircuitPython sprint to the proposals at https://wiki.python.org/moin/EuroPython2018/Sprints
by deshipu
Tue Jul 17, 2018 11:52 am
Forum: ESP8266 boards
Topic: Stuck in bootloop sometimes
Replies: 2
Views: 509

Re: Stuck in bootloop sometimes

How are you powering it?
by deshipu
Mon Jul 16, 2018 1:35 pm
Forum: General Discussion and Questions
Topic: The Melbourne MicroPython Meetup blog
Replies: 7
Views: 1065

Re: The Melbourne MicroPython Meetup blog

I did a start on that some time ago here: https://micropython-dev-docs.readthedocs.io/
It hasn't been finished or updated in years, though. But it's a start.