What browser are you using. I have found that only Chrome works 100%. Of course, if the device is rebooting, you'll get errors.
![](/assets/uploads/profile/uid-75157/75157-profileavatar.jpeg)
Posts made by Deckyon
-
RE: Issues with program "run" in UIflow 2.0
-
RE: First Project - GPS on Core2 w/ UIFlow2.0
@ajb2k3 I wanted to change the altitude to ft, speed to mph. I found the Maths group, but ended up having to first Convert to Float, then Convert to Int, then I could do the conversions. Also made the labels a bit easier to figure out at a glance.
lblAlt.setText(str((str('Alt (ft):') + str(((int(float(gps_0.altitude))) * 3.281)))))
lblSpd.setText(str((str('Speed (mph):') + str(((int(float(gps_0.speed_kph))) * 1.609)))))Thanks for the assist. Now on to a cooler UI now that I have the data I want.
-
RE: First Project - GPS on Core2 w/ UIFlow2.0
@robski said in First Project - GPS on Core2 w/ UIFlow2.0:
gps_0 = GPSUnit((33, 32))
Did some fiddling, including finally figuring out how to make those changes, and it is now working! Now, to do some programming and figure out how to change the strings into ints so I can do some math conversions.
Thanks all!also, need to come up with a real UI as well. But, I am just glad it is working.
-
RE: First Project - GPS on Core2 w/ UIFlow2.0
@robski Will check that when I get home. I was hoping to get comfortable with the whole UIFlow 2.0, not being a coder.
-
First Project - GPS on Core2 w/ UIFlow2.0
So, I am working on a simple first project using the GPS. I am basing it off the one for the ENVII. I have a Core2 with UIFLow 2.0 Below is the code. It displays the labels, and displays what looks like data from the GPS, but it never changes and is not correct as if it is not finding satellites or even looking for them. Is there something else I need to do in the code to initialize the GPS Unit correctly. I am not a coder, this is literally my first time trying anything like this. I got the Core2 and the GPS to start learning. Yes, I have been outside and waited with clear skies and the Core2 has plenty of battery.
import os, sys, io
import M5
from M5 import *
from hardware import *
from unit import GPSUnitrect0 = None
rect1 = None
rect2 = None
rect3 = None
rect4 = None
label0 = None
label1 = None
label2 = None
label3 = None
label4 = None
label5 = None
label6 = None
label7 = None
label8 = None
i2c0 = None
gps_0 = Nonedef setup():
global rect0, rect1, rect2, rect3, rect4, label0, label1, label2, label3, label4, label5, label6, label7, label8, i2c0, gps_0i2c0 = I2C(0, scl=Pin(33), sda=Pin(32), freq=100000)
gps_0 = GPSUnit((13, 14))
gps_0.set_time_zone(-5)
gps_0.uart_port_id(1)
M5.begin()
Widgets.fillScreen(0x5b5b5b)
rect0 = Widgets.Rectangle(0, 0, 320, 23, 0xffffff, 0x000167)
rect1 = Widgets.Rectangle(0, 215, 320, 23, 0xffffff, 0x000167)
rect2 = Widgets.Rectangle(0, 30, 320, 47, 0xffffff, 0xfbff8e)
rect3 = Widgets.Rectangle(0, 83, 320, 47, 0xffffff, 0x1c6527)
rect4 = Widgets.Rectangle(0, 136, 320, 47, 0xffffff, 0x760000)
label0 = Widgets.Label("label0", 2, 32, 1.0, 0x222222, 0xfbff8e, Widgets.FONTS.DejaVu18)
label1 = Widgets.Label("label1", 2, 54, 1.0, 0x222222, 0xfbff8e, Widgets.FONTS.DejaVu18)
label2 = Widgets.Label("label2", 2, 86, 1.0, 0xffffff, 0x1c6527, Widgets.FONTS.DejaVu18)
label3 = Widgets.Label("label3", 2, 108, 1.0, 0xffffff, 0x1c6527, Widgets.FONTS.DejaVu18)
label4 = Widgets.Label("label4", 2, 2, 1.0, 0xffffff, 0x000167, Widgets.FONTS.DejaVu18)
label5 = Widgets.Label("label5", 217, 2, 1.0, 0xffffff, 0x000167, Widgets.FONTS.DejaVu18)
label6 = Widgets.Label("label6", 2, 217, 1.0, 0xffffff, 0x000167, Widgets.FONTS.DejaVu18)
label7 = Widgets.Label("label7", 2, 138, 1.0, 0xffffff, 0x760000, Widgets.FONTS.DejaVu18)
label8 = Widgets.Label("label8", 2, 161, 1.0, 0xffffff, 0x760000, Widgets.FONTS.DejaVu18)def loop():
global rect0, rect1, rect2, rect3, rect4, label0, label1, label2, label3, label4, label5, label6, label7, label8, i2c0, gps_0
M5.update()
label0.setText(str((str('Date: ') + str((gps_0.gps_date)))))
label1.setText(str((str('Time: ') + str((gps_0.gps_time)))))
label2.setText(str((str('Lat:') + str((gps_0.latitude)))))
label3.setText(str((str('Long:') + str((gps_0.longitude)))))
label4.setText(str((str('Sats:') + str((gps_0.satellite_num)))))
label5.setText(str((str('Alt:') + str((gps_0.altitude)))))
label6.setText(str((str('Quality:') + str((gps_0.pos_quality)))))
label7.setText(str((str('Speed (KPH):') + str((gps_0.speed_kph)))))
label8.setText(str((str('Course:') + str((gps_0.course)))))if name == 'main':
try:
setup()
while True:
loop()
except (Exception, KeyboardInterrupt) as e:
try:
from utility import print_error_msg
print_error_msg(e)
except ImportError:
print("please update to latest firmware") -
RE: Core 2 bricked after attempting to install firmware
@mrmcquaid tried that many times - it just seems to be burnt out. It wont flash, no lights. There is the quick succession of beeps where the computer notices something has been plugged in, then the beep of it disconnecting. In the burner the COM port flashes a number then goes back to blank.
-
RE: Core 2 bricked after attempting to install firmware
@ajb2k3 No errors. The device itself has no lights that come on at all, even the blue on next to the SD slot. Win11 shows no COM errors when it is plugged in. Yes, multiple cables, multiple USB slots.
-
RE: Core 2 bricked after attempting to install firmware
@ajb2k3 No go. No errors and no lights on the Core2. It's just dead.
-
RE: Core 2 bricked after attempting to install firmware
@ajb2k3 So, yeah, there is no forcing at this point. I have never used or know how to use USB to UART nor where I would even try plugging anything in. This is my first foray into anything like this
-
RE: Core 2 bricked after attempting to install firmware
The problem is NO com ports are showing. Com5 flashes when I first plug it in, but then disappears. Also, no lights come on anymore at all on the Core2 when plugged in either.
-
RE: Core 2 bricked after attempting to install firmware
I must have a different version of the burner. I dont see an "erase" next to a burn. I get the dialog that comes up but again, it just says
"esptool.py v4.6.2
Serial port undefinedA fatal error occurred: Could not open undefined, the port doesn't exist"
-
Core 2 bricked after attempting to install firmware
Was going through the very first boot. Default stuff worked fine. Went to install UIFlow_Core2 Official and after it burnt, went and rebooted, ended up with black screen and no lights.
All drivers are installed on Win11.
When I hit the power button, in the Burner software, it flashes COM5 but then comes back and shows NO COM PORTs at all, and I cannot do anything.
I have searched out how to erase or reset, but NOTHING so far has worked. There is NO erase button in the Burner software. I tried the EasyLoader software, but no COM ports are listed.
I have also tried multiple USB ports and cables. No results. No lights, no sounds, no screen, nothing. PC only beeps, quickly shows the COM port in the Burner software, then promptly forgets there is a COM port at all.
Again, all I did was attempt to install the official UIFlow_Core2 firmware so I could start trying some thing out in UIFLow.