<?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[PROBLEMS WITH BLUETOOTH AND CORE 2]]></title><description><![CDATA[<p dir="auto">I have code in Python, written using Ui Flow, to control some motors through the core 2 screen. However, I would like to control my motors through the cell phone, thus using the cell phone in the same way I use the core2 screen.<br />
At first I just want to send information from my cell phone to the M5Stack via Bluetooth, I saw on the Internet that I could use MIT APP Inventor for this, so I followed this tutorial on YouTube: "<a href="https://www.youtube.com/watch?v=" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=</a> E495XIsM1PI&amp;t=5s"<br />
I just added a button that sends the text "A" via bluettoh to the connected device.<br />
However, I can't quite make the connection! Does the M5stack appear in my cell phone's Bluetooth settings, but does not appear in the inventor app?<br />
If anyone can help, I appreciate it! I'm desperate because it's urgent and I don't know what else to do, I don't have much knowledge about bluetooth connections</p>
<p dir="auto">Oh, and this is the code I ran in Ui FloW:<br />
"from m5stack import *<br />
from m5stack_ui import *<br />
from uiflow import *<br />
from ble import ble_uart</p>
<p dir="auto">screen = M5Screen()<br />
screen.clean_screen()<br />
screen.set_screen_bg_color(0xFFFFFF)</p>
<p dir="auto">label0 = M5Label('TEXT', x=142, y=69, color=0x000, font=FONT_MONT_14, parent=None)</p>
<p dir="auto">uart_ble = ble_uart.init('M5Stackfire')</p>
<p dir="auto">whileTrue:<br />
label0.set_text(str(uart_ble.read()))<br />
received_data = uart_ble.read()<br />
if received_data:<br />
if received_data == b'A':<br />
label0.set_text('A')<br />
else:<br />
label0.set_text('No A received')<br />
wait_ms(2)"</p>
]]></description><link>https://community.m5stack.com/topic/6429/problems-with-bluetooth-and-core-2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:12:30 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6429.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 May 2024 19:15:29 GMT</pubDate><ttl>60</ttl></channel></rss>