<?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[Do you have any faces keyboard programs?]]></title><description><![CDATA[<p dir="auto">Hello!<br />
I need a faces keyboard program!<br />
Do you have it?Thanks!</p>
]]></description><link>https://community.m5stack.com/topic/1218/do-you-have-any-faces-keyboard-programs</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 21:23:55 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1218.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Aug 2019 13:59:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Wed, 23 Oct 2019 07:41:45 GMT]]></title><description><![CDATA[<p dir="auto">Problem solved. Apparently <strong>this skethes only for faces-modules, not for Core-module</strong>.<br />
You should be more specific in progrmamm description. Whatever, thanks for answer.</p>
]]></description><link>https://community.m5stack.com/post/6110</link><guid isPermaLink="true">https://community.m5stack.com/post/6110</guid><dc:creator><![CDATA[mihazi]]></dc:creator><pubDate>Wed, 23 Oct 2019 07:41:45 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Tue, 22 Oct 2019 14:40:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/700">@lukasmaximus</a><br />
I took GameBoy.ino file from  <a href="https://github.com/m5stack/FACES-Firmware" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/FACES-Firmware</a>, Install ArduinoIDE from official site and setup esp32 support. Sketch file is original, not modified.<br />
And now,  I get error, as start compile there. here is full text:</p>
<pre><code>C:\Users\userrrr\Downloads\FACES-Firmware-master\FACES-Firmware-master\GameBoy\GameBoy.ino: In function 'void setup()':

GameBoy:16:3: error: 'DDRC' was not declared in this scope

   DDRC = 0x01;

   ^

GameBoy:17:3: error: 'PORTC' was not declared in this scope

   PORTC = 0x01;

   ^

GameBoy:18:3: error: 'DDRD' was not declared in this scope

   DDRD = 0x00;

   ^

GameBoy:19:3: error: 'PORTD' was not declared in this scope

   PORTD = 0x00;

   ^

GameBoy:20:3: error: 'DDRB' was not declared in this scope

   DDRB = 0x00;

   ^

GameBoy:21:3: error: 'PORTB' was not declared in this scope

   PORTB = 0xff;

   ^

GameBoy:22:11: error: 'PINB' was not declared in this scope

   oldPINB=PINB;

           ^

C:\Users\userrrr\Downloads\FACES-Firmware-master\FACES-Firmware-master\GameBoy\GameBoy.ino: In function 'void requestEvent()':

GameBoy:30:14: error: 'PINB' was not declared in this scope

   Wire.write(PINB);

              ^

GameBoy:10:23: error: 'PORTC' was not declared in this scope

 #define IRQ_1 Set_Bit(PORTC,0)

                       ^

C:\Users\userrrr\Downloads\FACES-Firmware-master\FACES-Firmware-master\GameBoy\GameBoy.ino:5:32: note: in definition of macro 'Set_Bit'

 #define Set_Bit(val, bitn)    (val |=(1&lt;&lt;(bitn)))

                                ^

C:\Users\userrrr\Downloads\FACES-Firmware-master\FACES-Firmware-master\GameBoy\GameBoy.ino:34:5: note: in expansion of macro 'IRQ_1'

     IRQ_1;

     ^

C:\Users\userrrr\Downloads\FACES-Firmware-master\FACES-Firmware-master\GameBoy\GameBoy.ino: In function 'void loop()':

GameBoy:40:6: error: 'PINB' was not declared in this scope

   if(PINB!=oldPINB)

      ^

GameBoy:11:23: error: 'PORTC' was not declared in this scope

 #define IRQ_0 Clr_Bit(PORTC,0)

                       ^

C:\Users\userrrr\Downloads\FACES-Firmware-master\FACES-Firmware-master\GameBoy\GameBoy.ino:6:33: note: in definition of macro 'Clr_Bit'

 #define Clr_Bit(val, bitn)     (val&amp;=~(1&lt;&lt;(bitn)))

                                 ^

C:\Users\userrrr\Downloads\FACES-Firmware-master\FACES-Firmware-master\GameBoy\GameBoy.ino:44:5: note: in expansion of macro 'IRQ_0'

     IRQ_0;

     ^

exit status 1
'DDRC' was not declared in this scope
</code></pre>
<p dir="auto">and here ino file</p>
<pre><code>#include &lt;Wire.h&gt;

#define FACES_KEYBOARD_I2C_ADDR 0x08

#define Set_Bit(val, bitn)    (val |=(1&lt;&lt;(bitn)))
#define Clr_Bit(val, bitn)     (val&amp;=~(1&lt;&lt;(bitn)))
#define Get_Bit(val, bitn)    (val &amp;(1&lt;&lt;(bitn)) )
//KEY PORTB
//IRQ PC0
#define IRQ_1 Set_Bit(PORTC,0)
#define IRQ_0 Clr_Bit(PORTC,0)

unsigned char oldPINB=0;
void setup()
{
  DDRC = 0x01;
  PORTC = 0x01;
  DDRD = 0x00;
  PORTD = 0x00;
  DDRB = 0x00;
  PORTB = 0xff;
  oldPINB=PINB;
  Wire.begin(FACES_KEYBOARD_I2C_ADDR);
  Wire.onRequest(requestEvent);
}
unsigned char i = 0;
unsigned char temp = 0, hadPressed = 0;
void requestEvent()
{
  Wire.write(PINB);
  if (hadPressed == 1)
  {
    hadPressed = 0;
    IRQ_1;
  }

}
void loop()
{
  if(PINB!=oldPINB)
  {
    temp=PINB;
    oldPINB=temp;
    IRQ_0;
    hadPressed = 1;
  }
  /*
  if (PINB != 0xff)
  {
    switch(PINB)
    {
      case 0xFE:temp='U';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
      case 0xFD:temp='D';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
      case 0xFB:temp='L';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
      case 0xF7:temp='R';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
      case 0xEF:temp='A';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
      case 0xDF:temp='B';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
      case 0xBF:temp='s';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
      case 0x7F:temp='S';while(PINB!=0xff)delay(1);IRQ_0;hadPressed = 1;break;
    }
  }*/
  delay(10);
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/6097</link><guid isPermaLink="true">https://community.m5stack.com/post/6097</guid><dc:creator><![CDATA[mihazi]]></dc:creator><pubDate>Tue, 22 Oct 2019 14:40:47 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Tue, 22 Oct 2019 10:44:21 GMT]]></title><description><![CDATA[<p dir="auto">If you can share your code, it would  be much easier for us to help resolve the problem. What exactly are you trying to do with the keyboard face?</p>
]]></description><link>https://community.m5stack.com/post/6094</link><guid isPermaLink="true">https://community.m5stack.com/post/6094</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Tue, 22 Oct 2019 10:44:21 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Tue, 22 Oct 2019 09:22:53 GMT]]></title><description><![CDATA[<p dir="auto">“Not declared in this scope” usually means that it can’t find a library installed on your computer. Make sure that you have all the libraries listed in the top list.</p>
]]></description><link>https://community.m5stack.com/post/6092</link><guid isPermaLink="true">https://community.m5stack.com/post/6092</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 22 Oct 2019 09:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Tue, 22 Oct 2019 08:50:48 GMT]]></title><description><![CDATA[<p dir="auto">i got this message too. on compilation phase. Arduino IDE. It was updated to 1.8.10. I choose M5Stack-Core-ESP32 board.</p>
]]></description><link>https://community.m5stack.com/post/6091</link><guid isPermaLink="true">https://community.m5stack.com/post/6091</guid><dc:creator><![CDATA[mihazi]]></dc:creator><pubDate>Tue, 22 Oct 2019 08:50:48 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Fri, 16 Aug 2019 01:10:22 GMT]]></title><description><![CDATA[<p dir="auto">Did you get this message during the flashing process? What method did you use to flash the firmware? The M5Stack must be completely erased before flashing this firmware</p>
]]></description><link>https://community.m5stack.com/post/5180</link><guid isPermaLink="true">https://community.m5stack.com/post/5180</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Fri, 16 Aug 2019 01:10:22 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Thu, 15 Aug 2019 11:58:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/700">@lukasmaximus</a> uhh..."'DDRB' was not declared in this scope!"</p>
]]></description><link>https://community.m5stack.com/post/5170</link><guid isPermaLink="true">https://community.m5stack.com/post/5170</guid><dc:creator><![CDATA[sysdl132]]></dc:creator><pubDate>Thu, 15 Aug 2019 11:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Thu, 15 Aug 2019 09:45:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/700">@lukasmaximus</a> thanks</p>
]]></description><link>https://community.m5stack.com/post/5167</link><guid isPermaLink="true">https://community.m5stack.com/post/5167</guid><dc:creator><![CDATA[sysdl132]]></dc:creator><pubDate>Thu, 15 Aug 2019 09:45:19 GMT</pubDate></item><item><title><![CDATA[Reply to Do you have any faces keyboard programs? on Wed, 14 Aug 2019 02:39:15 GMT]]></title><description><![CDATA[<p dir="auto">Could you be more specific? what faces keyboard program? If your talking about the factory stock firmware you can find it here <a href="https://github.com/m5stack/FACES-Firmware" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/FACES-Firmware</a></p>
]]></description><link>https://community.m5stack.com/post/5126</link><guid isPermaLink="true">https://community.m5stack.com/post/5126</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Wed, 14 Aug 2019 02:39:15 GMT</pubDate></item></channel></rss>