M5burner on windows7 cannot flash
-
@ariane98 show us your code
-
from m5stack import *
from m5ui import *
from uiflow import *
import imusetScreenColor(0x111111)
imu0 = imu.IMU()
label0 = M5TextBox(27, 7, "AccX", lcd.FONT_Default,0xFFFFFF, rotate=0)setScreenColor(0x33ff33)
lcd.font(lcd.FONT_DejaVu24)
lcd.print('FelX', 10, 30, 0xcc33cc)
wait(3)
while True:
label0.setText(str(imu0.acceleration[0]))
wait(1)
wait_ms(2) -
when I try the exact same blocks than in https://www.youtube.com/watch?v=zNxKkfbEkKU (label show get X gyr), I get this "I2C bus error(6)"
-
and from arduino IDE I get values from IMU
So I guess it has with UIFlow interface to do ? -
Your first issue on the first PC is that for some reason UIFlow is looking at the 2.7 version and not the 3.6 version of python. Check your python environmental setup as this happens if the environment is wrong (I used to get this often when running 2 version of python.
Second issue. what hardware are you running, what firmware version are you running and what version of UIFlow are you running?
It sounds like you haven't got UIFlow set to M5Stick. -
Code runs on the stick, excepted whan I try to use IMU.
Both firmware and UIFlow are UIFlowv1.3.2 -
@ariane98 Which stick?
The old black or the Orange Stick C? -
Orange
-
btw, in arduino, how do you access the built in red led?
Docs showed pin 10 but it's no working... -
@ariane98 said in M5burner on windows7 cannot flash:
btw, in arduino, how do you access the built in red led?
Docs showed pin 10 but it's no working...Try GPIO10
-
Strangely, it does light the led when I use digitalWrite(10, HIGH) but then nothing happens with digitalWrite(10, LOW)
If I use digitalWrite(10, LOW) first, it sets the led ON... -
Ok I'm running 1.4 and getting a syntex error.
Try upgrading to 1.4.0 beta and try again. -
@ajb2k3
Thanks for your help
I intended to use m5stick with kids but maybe it's too early...
Both UIFlow and Arduino environments seem still unpredictable -
@ariane98 Its strange because all I use is UIFlow and I am writing an english book on it (samples available to download in the projects forum)
For the current M5StickC competition i'm using the IMU in my project however, I'm using the online version and programming over wifi. -
@ajb2k3
I am using UIFlow online too, but no luck with IMU... -
@ajb2k3
is it possible too use the stick as a vry simple webserver? -
Don't know about the web server but here is my imu test file
https://github.com/Ajb2k3/UIFlowHandbook/blob/master/main (8).m5f -
@ajb2k3
I get the same I2C bus error
If I upload it to the stick I get a grey screen with no data displayed -
updated to 1.4.0 beta and that's OK now
Thank you
I've looked at your book...quite nice -
@ariane98 said in M5burner on windows7 cannot flash:
updated to 1.4.0 beta and that's OK now
Thank you
I've looked at your book...quite niceIts still WIP and I am open to comments a criticism.