Skip to content

Commit

Permalink
undo previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NicK4rT authored Nov 20, 2024
1 parent 0d7c923 commit 3fdb1b4
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions software/networking/examples/pyscript_main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
from machine import Pin
import asyncio
import gc
gc.collect()

Expand Down Expand Up @@ -37,12 +36,7 @@ def boop(pin):
switch_select = Pin(9, Pin.IN, Pin.PULL_UP)
switch_select.irq(trigger=Pin.IRQ_FALLING, handler=boop)

async def main_loop():
while True:
print(f"{int(time.ticks_ms() - start_time) / 1000}: {gc.mem_free()} bytes")
gc.collect()
await asyncio.sleep(1)

asyncio.run(main_loop())


while True:
print(f"{int(time.ticks_ms()-start_time)/1000}: {gc.mem_free()} bytes")
time.sleep(1)
gc.collect()

0 comments on commit 3fdb1b4

Please sign in to comment.