<?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[How to use FACES Keyboard with Core2?]]></title><description><![CDATA[<p dir="auto">Hey all! A while back I purchased the M5Core2 and the FACES Keyboard kit, and I noticed that the keyboard only works when I use UIFlow, and it doesn't work when I program the device using the Arduino IDE. Here's my code so far:</p>
<pre><code>#include &lt;M5Core2.h&gt;

uint8_t getKey() {
  Wire.requestFrom(0x08, 1);
  uint8_t o = Wire.read();
  return o;
}

void setup() {
  M5.begin(true, true, true, true);
  Wire.begin();//21, 22);

  M5.Lcd.print("Keyboard test");
}

void loop() {
  uint8_t key = getKey();

  if (key != 0) {
    M5.Lcd.print("Key pressed: ");
    M5.Lcd.print(key);
  } else {
    M5.Lcd.print(".");
  }

  delay(2);
}

</code></pre>
<p dir="auto">Does anyone know what I'm doing wrong?</p>
]]></description><link>https://community.m5stack.com/topic/4840/how-to-use-faces-keyboard-with-core2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:21:15 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4840.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Nov 2022 20:15:02 GMT</pubDate><ttl>60</ttl></channel></rss>