<?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[Does anybody want to share his code for the keyboard M5Stack?]]></title><description><![CDATA[<p dir="auto">I really would like to learn with them.<br />
Thank you!</p>
]]></description><link>https://community.m5stack.com/topic/1533/does-anybody-want-to-share-his-code-for-the-keyboard-m5stack</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 09:07:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1533.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Dec 2019 17:01:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Does anybody want to share his code for the keyboard M5Stack? on Wed, 11 Dec 2019 17:55:06 GMT]]></title><description><![CDATA[<p dir="auto">There's some example code on the github here:</p>
<p dir="auto"><a href="https://github.com/m5stack/M5Stack/blob/master/examples/Unit/CardKB/CardKB.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/blob/master/examples/Unit/CardKB/CardKB.ino</a></p>
<p dir="auto"><a href="https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB</a></p>
]]></description><link>https://community.m5stack.com/post/6663</link><guid isPermaLink="true">https://community.m5stack.com/post/6663</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Wed, 11 Dec 2019 17:55:06 GMT</pubDate></item><item><title><![CDATA[Reply to Does anybody want to share his code for the keyboard M5Stack? on Wed, 11 Dec 2019 15:24:02 GMT]]></title><description><![CDATA[<p dir="auto">Thank you! It is quite nice for the beginning.</p>
]]></description><link>https://community.m5stack.com/post/6660</link><guid isPermaLink="true">https://community.m5stack.com/post/6660</guid><dc:creator><![CDATA[BitBoy01]]></dc:creator><pubDate>Wed, 11 Dec 2019 15:24:02 GMT</pubDate></item><item><title><![CDATA[Reply to Does anybody want to share his code for the keyboard M5Stack? on Mon, 09 Dec 2019 22:36:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi BitBoy01.<br />
With this code, I was able to print the keyboard data on the LCD:</p>
<pre><code>#include &lt;Arduino.h&gt;
#include &lt;M5Stack.h&gt;

#define CARDKB_ADDR 0x5F

void setup()
{
  M5.begin();
  Wire.begin();

  // Lcd display init
  M5.Lcd.setBrightness(10);
  M5.Lcd.fillScreen(BLACK);
  M5.Lcd.setCursor(0, 0);
  M5.Lcd.setTextColor(WHITE);
  M5.Lcd.setTextSize(2);
  M5.Lcd.println("Grove Keyboard");
  M5.Lcd.println("Version 0.1 10.09.2019");

  M5.Lcd.printf("\n");
  M5.Lcd.printf("IIC Address: 0x5F\n");
  M5.Lcd.printf("\n");
}
void loop()
{
  Wire.requestFrom(CARDKB_ADDR, 1);
  while (Wire.available())
  {
    char c = Wire.read(); // receive a byte as character
    if (c != 0)
    {
      if (c == 13)
        M5.Lcd.printf("\n"); // 13 is the new line code
      else
        M5.Lcd.printf("%c", c); // print as character
    }
  }
}
</code></pre>
<p dir="auto">Hope that helps...</p>
]]></description><link>https://community.m5stack.com/post/6649</link><guid isPermaLink="true">https://community.m5stack.com/post/6649</guid><dc:creator><![CDATA[hague]]></dc:creator><pubDate>Mon, 09 Dec 2019 22:36:36 GMT</pubDate></item></channel></rss>