Search found 26 matches

by Minyiky
Wed Feb 10, 2021 7:49 am
Forum: General Discussion and Questions
Topic: Bitbanging DVI only possible on RP2040?
Replies: 0
Views: 250

Bitbanging DVI only possible on RP2040?

Hi everyone, I have recently seen this post ( https://github.com/Wren6991/picodvi ) about bitbanging a DVI signal using the new RP2040 chip and had some questions about it. Firstly, is this something that would be possible on any device (I'm particularly interested in the esp32) or does it appear to...
by Minyiky
Tue Feb 09, 2021 10:08 am
Forum: Drivers for External Components
Topic: Driver for MS5803 Pressure sensor
Replies: 0
Views: 278

Driver for MS5803 Pressure sensor

Hi all, I have tried my hand at writing a driver for this board and made it available on github: https://github.com/minyiky/ms5803-micropython Hopefully it is of use to someone and I would definitely appreciate any feedback on it, especially on structure as this is my first attempt at writing a driv...
by Minyiky
Sun Feb 07, 2021 3:08 pm
Forum: General Discussion and Questions
Topic: Clearing RAM
Replies: 10
Views: 568

Re: Clearing RAM

Now comming across another memory issue, I seem to be having fragmentation issues, when swithing between screens I am checking mem_free and it is remaining pretty consistant with over 45kb free but after a few switches it will throw a memory error saying it is unable to allocate 2048bytes. 1) Am I c...
by Minyiky
Sun Feb 07, 2021 9:53 am
Forum: General Discussion and Questions
Topic: Clearing RAM
Replies: 10
Views: 568

Re: Clearing RAM

Hmm firstly I want to say thank you, this seems to have fixed the problem, although I am a bit confused as that is what I was doing when I first encountered the problem. I believe what has happened is a combination of the problem mentioned by stijn where the collect call was not freeing the deleted ...
by Minyiky
Sat Feb 06, 2021 2:09 pm
Forum: General Discussion and Questions
Topic: Clearing RAM
Replies: 10
Views: 568

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

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

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

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

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

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...