<?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[Core2: Vibration motor intensity setting support..]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a><br />
With "Set vibration intensity" alone the vibration motor does not work at all, no matter if 1-100%.<br />
If I switch it on with "Set vibration enable (true)" the motor will vibrate but with the same intensity, I try to change the intensity with "Set vibration intensity" but nothing happens.<br />
I can only switch it off with "Set vibration enable (false)"!</p>
]]></description><link>https://community.m5stack.com/topic/2313/core2-vibration-motor-intensity-setting-support</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:59:47 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2313.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Sep 2020 04:50:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core2: Vibration motor intensity setting support.. on Tue, 22 Sep 2020 11:36:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi skink</p>
<p dir="auto">you're very welcome.</p>
<p dir="auto">The required fix mentioned before has now been included to the M5Core2 library so hopefully in one of the next UIFlow updates it will be picked up.</p>
<p dir="auto">Happy Stacking!<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10172</link><guid isPermaLink="true">https://community.m5stack.com/post/10172</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 22 Sep 2020 11:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to Core2: Vibration motor intensity setting support.. on Tue, 22 Sep 2020 02:48:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello Felix,</p>
<p dir="auto">Thank you, I have tested your program and it works perfectly. Thank you very much for that !</p>
<p dir="auto">THX skink</p>
]]></description><link>https://community.m5stack.com/post/10167</link><guid isPermaLink="true">https://community.m5stack.com/post/10167</guid><dc:creator><![CDATA[Skink]]></dc:creator><pubDate>Tue, 22 Sep 2020 02:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to Core2: Vibration motor intensity setting support.. on Mon, 21 Sep 2020 21:46:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/skink" aria-label="Profile: Skink">@<bdi>Skink</bdi></a></p>
<p dir="auto">here is a Python solution. Button A decreases, Btn C increases intensity. Btn B turns vibration motor on and off:</p>
<pre><code>from m5stack import *
from m5stack_ui import *
from uiflow import *
import i2c_bus

screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)

label0 = M5Label('Text', x=52, y=67, color=0x000, font=FONT_MONT_24, parent=None)

from numbers import Number

motorOnOff = None
motorValue = None
temp = None

def setMotorValue():
  global motorOnOff, motorValue, temp
  label0.set_text(str(motorValue))
  temp = (i2c0.read_u8(0x28)) &amp; 0xF0
  temp = temp | motorValue
  i2c0.write_mem_data(0x28, temp, i2c_bus.UINT8LE)

def buttonA_wasPressed():
  global motorOnOff, motorValue, temp
  if motorValue &gt; 0:
    motorValue -= 1
  setMotorValue()
  pass
btnA.wasPressed(buttonA_wasPressed)

def buttonC_wasPressed():
  global motorOnOff, motorValue, temp
  if motorValue &lt; 15:
    motorValue += 1
  setMotorValue()
  pass
btnC.wasPressed(buttonC_wasPressed)

def buttonB_wasPressed():
  global motorOnOff, motorValue, temp
  motorOnOff = not motorOnOff
  power.setVibrationEnable(motorOnOff)
  pass
btnB.wasPressed(buttonB_wasPressed)

i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x34, freq=400000)
motorOnOff = False
motorValue = 7
setMotorValue()
</code></pre>
<p dir="auto">Cheers<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10166</link><guid isPermaLink="true">https://community.m5stack.com/post/10166</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 21 Sep 2020 21:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to Core2: Vibration motor intensity setting support.. on Mon, 21 Sep 2020 20:31:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/skink" aria-label="Profile: Skink">@<bdi>Skink</bdi></a></p>
<p dir="auto">that is not very surprising. To set the <code>vibration intensity</code> an underlying function <code>SetLDOVoltage()</code> is used which currently is broken in M5Core2 library as pointed out by <a class="plugin-mentions-user plugin-mentions-a" href="/user/veryalien" aria-label="Profile: veryalien">@<bdi>veryalien</bdi></a> :<br />
<a href="https://github.com/m5stack/M5Core2/issues/4" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Core2/issues/4</a>.</p>
<p dir="auto">I've proposed a fix in a pull-request which got closed as it should be fixed in the near future anyways as <a class="plugin-mentions-user plugin-mentions-a" href="/user/hades2001" aria-label="Profile: Hades2001">@<bdi>Hades2001</bdi></a> pointed out:<br />
<a href="https://github.com/m5stack/M5Core2/pull/5" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Core2/pull/5</a></p>
<p dir="auto">Cheers<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10165</link><guid isPermaLink="true">https://community.m5stack.com/post/10165</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 21 Sep 2020 20:31:09 GMT</pubDate></item></channel></rss>