You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
display_spi=machine.SPI(1,baudrate=40000000,sck=machine.Pin(18, machine.Pin.OUT),mosi=machine.Pin(19, machine.Pin.OUT)) # will only work with modded MPY to add flag for dummy bit, otherwise use baudrate 27000000, ESP32 limit is 80Mhz
67
+
display_spi=machine.SPI(1,baudrate=80000000,sck=machine.Pin(18, machine.Pin.OUT),mosi=machine.Pin(19, machine.Pin.OUT)) # will only work with modded MPY to add flag for dummy bit, otherwise use baudrate 27000000, ESP32 limit is 80Mhz
self.vibration_controller.mode=adafruit_drv2605.MODE_REALTIME# i really cant be bothered lol drv looks like it has nice functions but i have other priorities rn
self.vibration_controller.mode=adafruit_drv2605.MODE_INTTRIG# i really cant be bothered lol drv looks like it has nice functions but i have other priorities rn
258
263
self.vibrator=None
259
264
260
265
machine.freq(80000000) #todo: set to user value (give a slider with choice between 240, 160, and 80 mhz?)
self.display.blit_buffer(array, 0, 0, Hardware.DISPLAY_WIDTH, Hardware.DISPLAY_HEIGHT) # O(1) for the whole render pipeline with that, but quite slow... but not much more than even a simple direct draw
334
347
# seems like to get more speed would need to do quite a lot on the C side of things
"The impression that _thread.stack_size() would not work came from the behavior that calling it without arguments reports the previously set value but at the same time sets the stack size silently back to 4K.
27
+
So print('New Stack Size=', _thread.stack_size()) prints nicely the previously set value but makes this setting invalid.
28
+
Taking that into account, the place where e.g. _thread.stack_size(8*1024) is called seems to be not critical anymore."
29
+
30
+
Comments say this is *intended*
31
+
32
+
33
+
Fixing that in my code immediatly caused wifi driver to run out of memory ('unknown error 0x0101') so it's working
34
+
35
+
Also I was testing on the V2, which has 4MB of ram instead of 8MB and made the error easy to hit'''
0 commit comments