Skip to content

Commit 93d6c92

Browse files
committed
Cleaned up Pytrack example
1 parent 71dce01 commit 93d6c92

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

pytrack/main.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
import os
55
import time
66
import utime
7+
import gc
78
from machine import RTC
89
from machine import SD
9-
from machine import Timer
1010
from L76GNSS import L76GNSS
1111
from pytrack import Pytrack
12-
# setup as a station
13-
14-
import gc
1512

1613
time.sleep(2)
1714
gc.enable()
@@ -23,15 +20,15 @@
2320
print('\nRTC Set from NTP to UTC:', rtc.now())
2421
utime.timezone(7200)
2522
print('Adjusted from UTC to EST timezone', utime.localtime(), '\n')
23+
2624
py = Pytrack()
2725
l76 = L76GNSS(py, timeout=30)
28-
chrono = Timer.Chrono()
29-
chrono.start()
30-
#sd = SD()
31-
#os.mount(sd, '/sd')
32-
#f = open('/sd/gps-record.txt', 'w')
33-
while (True):
3426

27+
# sd = SD()
28+
# os.mount(sd, '/sd')
29+
# f = open('/sd/gps-record.txt', 'w')
30+
31+
while (True):
3532
coord = l76.coordinates()
3633
#f.write("{} - {}\n".format(coord, rtc.now()))
3734
print("{} - {} - {}".format(coord, rtc.now(), gc.mem_free()))

0 commit comments

Comments
 (0)