<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Trying to get stick V working]]></title><description><![CDATA[<p dir="auto">I am trying to get the Stick V working.<br />
I flashed it with the firmware 1.2 of target trace.<br />
I am using this code wit UIFlow Beta:<br />
from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import unit</p>
<p dir="auto">setScreenColor(0x222222)</p>
<p dir="auto">rectangle0 = M5Rect(134, 104, 30, 30, 0xFFFFFF, 0xFFFFFF)<br />
Follow = M5Title(title="Title", x=3 , fgcolor=0xFFFFFF, bgcolor=0x0000FF)<br />
label0 = M5TextBox(5, 30, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)<br />
label1 = M5TextBox(70, 30, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)</p>
<p dir="auto">x = None<br />
y = None<br />
h = None<br />
w = None</p>
<p dir="auto">def buttonA_wasPressed():<br />
global x, y, h, w<br />
V0.setTrackAreaCoordinate(140, 100, 40, 40)<br />
pass<br />
btnA.wasPressed(buttonA_wasPressed)</p>
<p dir="auto">Follow.setTitle('Follow the rabbit')<br />
V0 = unit.get(unit.TARGET_TRACE, unit.PORTB)<br />
while True:<br />
x = V0.getTrack_X()<br />
y = V0.getTrack_Y()<br />
h = V0.getTrack_Height()<br />
w = V0.getTrack_Width()<br />
label0.setText(str(x))<br />
label1.setText(str(y))<br />
rectangle0.setPosition(x, y)<br />
rectangle0.setSize(h, w)<br />
wait_ms(2)</p>
<p dir="auto">And getting the following error-Message:<br />
'module' object has no attribute 'TARGET_TRACE'</p>
]]></description><link>https://community.m5stack.com/topic/2311/trying-to-get-stick-v-working</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 03:10:52 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2311.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Sep 2020 18:44:00 GMT</pubDate><ttl>60</ttl></channel></rss>