Search found 32 matches

by Minyiky
Sat Feb 06, 2021 2:09 pm
Forum: General Discussion and Questions
Topic: Clearing RAM
Replies: 10
Views: 4189

Re: Clearing RAM

I cannot see anywhere where a reference would be kept, I am now wondering if simply passing the variable is causing the issue. If I try to delete the buffer before calling block I am able to recover the space but not after. To try and see if block was the issue I created a new empty function: def _b...
by Minyiky
Fri Feb 05, 2021 3:50 pm
Forum: General Discussion and Questions
Topic: Clearing RAM
Replies: 10
Views: 4189

Re: Clearing RAM

The block function sends position commands to the screen and then writes the contents of buf to the screen.

When I check the mem_free it reduces immediately after initiating the buffer and the amount used is equal to its size, that memory is then never freed even with multiple calls of gc. collect.
by Minyiky
Fri Feb 05, 2021 1:23 pm
Forum: General Discussion and Questions
Topic: Clearing RAM
Replies: 10
Views: 4189

Clearing RAM

I am running a task that is quite ram hungry and at the start I am loading an image onta a screen but this is cutting into my available RAM This is the funtion I am using to push the image to the screen: def draw_image(self, path, x=0, y=0, w=320, h=240, chunk_height=3200): """Draw image from flash....
by Minyiky
Tue Feb 02, 2021 6:37 am
Forum: General Discussion and Questions
Topic: Small board for battery powered project
Replies: 2
Views: 1374

Re: Small board for battery powered project

Hi there, Thank you for your answer, for connectivity I would really want Bluetooth, I am not too worried about USB connectivity. I hadn't realised that the stm32l4+ series didn't have Bluetooth inbuilt which would be a bit of a pain and so it looks like sticking with the esp32 may be the best optio...
by Minyiky
Mon Feb 01, 2021 8:37 pm
Forum: General Discussion and Questions
Topic: Small board for battery powered project
Replies: 2
Views: 1374

Small board for battery powered project

Hi all, I have a project in mind (a handheld / wearable device) that ideally wants as small a board as possible while also mainting the ability to go into long periods of deep sleep on battery power. I will have a display and several snesors attached to it. So far I have been using an firebeetle ESP...
by Minyiky
Sun Dec 06, 2020 3:47 pm
Forum: ESP32 boards
Topic: Best driver for ili9341 display
Replies: 40
Views: 26098

Re: Best driver for ili9341 display

I'm glad I could be of some assistance. Interestingly I also originally had the commands set the way you did, however when I was working with hundreds of individual calls the ram write sequence was being slowed by the continuous byte array conversion and so I changed all to be constants to keep it c...
by Minyiky
Sun Dec 06, 2020 2:08 pm
Forum: ESP32 boards
Topic: Best driver for ili9341 display
Replies: 40
Views: 26098

Re: Best driver for ili9341 display

If you have a driver working with nano-gui and ili9341 you might like to post it - I'd be interested to study it. I need to give some thought on how to integrate 4-bit color into the project as a whole, but I have a scheme in mind. I have forked your nano gui module and added some files that should...
by Minyiky
Sat Dec 05, 2020 11:54 am
Forum: ESP32 boards
Topic: Best driver for ili9341 display
Replies: 40
Views: 26098

Re: Best driver for ili9341 display

The ESP can indeed go to 80MHz. I was quoting the ili9341 datasheet. A convoy travels at the speed of the slowest ship ;) Ahh see I knew I would be missing something very obvious. It looks like this is about the limit without some over clocking and DMA magic, and is probably perfectly fast enough f...
by Minyiky
Fri Dec 04, 2020 8:44 pm
Forum: ESP32 boards
Topic: Best driver for ili9341 display
Replies: 40
Views: 26098

Re: Best driver for ili9341 display

Thank you for the help with this, I knew that my viper code was being very ineefficient and that was down to not being familiar with it, for example the type converrsions were to remove errors I was encountering. I have restructured my code to make proper use of viper code, and only a single instanc...
by Minyiky
Fri Dec 04, 2020 8:54 am
Forum: ESP32 boards
Topic: Best driver for ili9341 display
Replies: 40
Views: 26098

Re: Best driver for ili9341 display

Update time, I have what I can only call mixed success. On the positive side I now have nano_GUI running on an ili9341 display (specifically the clock demo). On the negative side the write times are slow, around 3 seconds per screen refresh (it was 22 seconds before I got the micropython.viper decor...