File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 44import os
55import time
66import utime
7+ import gc
78from machine import RTC
89from machine import SD
9- from machine import Timer
1010from L76GNSS import L76GNSS
1111from pytrack import Pytrack
12- # setup as a station
13-
14- import gc
1512
1613time .sleep (2 )
1714gc .enable ()
2320print ('\n RTC Set from NTP to UTC:' , rtc .now ())
2421utime .timezone (7200 )
2522print ('Adjusted from UTC to EST timezone' , utime .localtime (), '\n ' )
23+
2624py = Pytrack ()
2725l76 = 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 ()))
You can’t perform that action at this time.
0 commit comments