Search found 3 matches

by timer
Tue Feb 18, 2020 11:49 am
Forum: Development of MicroPython
Topic: malloc mp_task_heap_size problem in main.c
Replies: 3
Views: 2376

Re: malloc mp_task_heap_size problem in main.c

My guess is that you're enabling PSRAM / SPIRAM for MicroPython? Which means that MicroPython will use the entire PSRAM for its heap, conflicting with the camera driver. (For historical bug workaround reasons, it uses the PSRAM directly via it's memory address, rather than via malloc). I'm a little...
by timer
Mon Feb 17, 2020 3:20 pm
Forum: Development of MicroPython
Topic: malloc mp_task_heap_size problem in main.c
Replies: 3
Views: 2376

malloc mp_task_heap_size problem in main.c

hello everyone, I have hardware: TTGO Camera Plus 8M spi ram. camera:ov2640 display:st7789 software:the newest Micropython ESPIDF_SUPHASH_V3 := 143d26aa49df524e10fb8e41a71d12e731b9b71d esp32-camera: https://github.com/tsaarni/esp32-camera-for-micropython (can not use newest esp32-camera from Espress...
by timer
Fri Feb 07, 2020 1:41 pm
Forum: General Discussion and Questions
Topic: can the Timer be used twice at the same time?
Replies: 1
Views: 1212

can the Timer be used twice at the same time?

I wrote the code like that, from machine import Timer class TOUCH(object): def __init__(self,pin): self.pin = pin self.tim = Timer(4) self.tim.init(mode=Timer.PERIODIC, period=2000,callback=self.touch_cb) def touch_cb(self, tim): print(self.pin) def stop(self): self.tim.deinit() a = TOUCH("1") print...