
UiFlow 使用教程
获取时间,经纬度,和高度数据打印到串口中
from m5stack import *
from m5ui import *
from uiflow import *
from base.GPS import GPS
import time
gps.deinit()
while True:
print(gps.timestamp)
print(gps.latitude)
print(gps.longitude)
print(gps.altitude)
wait(2)
wait_ms(2) gps.deinit() gps = GPS(0, '') gps._tf.init_sdcard(33, 19, 23, 20000000) gps.altitude gps.course gps.date gps.geoid_height gps.hdop gps.last_sv_sentence gps.latitude gps.longitude with open('/sd/', 'a')
pass passprint(gps.pdop) gps.satellites_in_use gps.satellites_in_view gps.satellites_used gps.satellite_data fs.tell() fs.read(0) fs.read() fs.readline() fs.seek(0) fs.write('') gps._tf.is_folder_exist('') gps._tf.is_file_exist('') gps._tf.show_directory('') gps._tf.create_folder('') gps._tf.delete_file('') gps._tf.rename_file('','') gps._tf.delete_folder('') gps.speed gps.timestamp gps.total_sv_sentence gps.vdop