<?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[Using CardKB (not hat) with M5StickC]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm trying to use CardKB with M5 Stick C through grove port. There is an example in the library (which looks like copy paste from M5Stack with only changed header name), but i couldn't make it work. One of the odd things is that messes with gpio5 which is connected to screen. Any suggestion on how to make CardKb work?<br />
Thanks</p>
<p dir="auto">#include &lt;M5StickC.h&gt;<br />
#include &lt;Wire.h&gt;</p>
<p dir="auto">#define CARDKB_ADDR 0x5F</p>
<p dir="auto">void setup()<br />
{<br />
M5.begin();<br />
Serial.begin(115200);<br />
Wire.begin();<br />
pinMode(5, INPUT);<br />
digitalWrite(5, HIGH);<br />
M5.Lcd.fillScreen(BLACK);<br />
M5.Lcd.setRotation(3);<br />
M5.Lcd.setCursor(1, 10);<br />
M5.Lcd.setTextColor(YELLOW);<br />
M5.Lcd.setTextSize(2);<br />
M5.Lcd.printf("IIC Address: 0x5F\n");<br />
M5.Lcd.printf("&gt;&gt;");<br />
}<br />
void loop()<br />
{<br />
Wire.requestFrom(CARDKB_ADDR, 1);<br />
while(Wire.available())<br />
{<br />
char c = Wire.read(); // re ceive a byte as characterif<br />
if (c != 0)<br />
{<br />
M5.Lcd.printf("%c", c);<br />
Serial.println(c, HEX);<br />
// M5.Speaker.beep();<br />
}<br />
}<br />
// delay(10);<br />
}</p>
]]></description><link>https://community.m5stack.com/topic/1819/using-cardkb-not-hat-with-m5stickc</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 08:31:11 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1819.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Apr 2020 09:24:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using CardKB (not hat) with M5StickC on Sun, 05 Apr 2020 20:23:08 GMT]]></title><description><![CDATA[<p dir="auto">Thanks! it works.</p>
]]></description><link>https://community.m5stack.com/post/8029</link><guid isPermaLink="true">https://community.m5stack.com/post/8029</guid><dc:creator><![CDATA[mich]]></dc:creator><pubDate>Sun, 05 Apr 2020 20:23:08 GMT</pubDate></item><item><title><![CDATA[Reply to Using CardKB (not hat) with M5StickC on Sun, 05 Apr 2020 18:51:15 GMT]]></title><description><![CDATA[<pre><code>

#include &lt;M5StickC.h&gt;
#include &lt;Wire.h&gt;

#define CARDKB_ADDR 0x5F

void setup()
{
  M5.begin();
  Serial.begin(115200);
  Wire.begin();
  M5.Lcd.fillScreen(BLACK);
  M5.Lcd.setRotation(3);
  M5.Lcd.setCursor(1, 10);
  M5.Lcd.setTextColor(YELLOW);
  M5.Lcd.setTextSize(2);
  M5.Lcd.printf("IIC Address: 0x5F\n");
  M5.Lcd.printf("&gt;&gt;");
}
void loop()
{
  Wire.requestFrom(CARDKB_ADDR, 1);
  while(Wire.available())
  {
    char c = Wire.read(); // receive a byte as characterif
    if (c != 0)
    {
      M5.Lcd.printf("%c", c);
      Serial.println(c, HEX);
     // M5.Speaker.beep();
    }
  }
  // delay(10);
}


</code></pre>
]]></description><link>https://community.m5stack.com/post/8026</link><guid isPermaLink="true">https://community.m5stack.com/post/8026</guid><dc:creator><![CDATA[ChrisWR]]></dc:creator><pubDate>Sun, 05 Apr 2020 18:51:15 GMT</pubDate></item></channel></rss>