<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Remotexy Wemos D1 R1 with P10 DMD]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=986</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=986&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Remotexy Wemos D1 R1 with P10 DMD.]]></description>
		<lastBuildDate>Thu, 30 Apr 2020 05:50:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Remotexy Wemos D1 R1 with P10 DMD]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2909#p2909</link>
			<description><![CDATA[<div class="quotebox"><cite>giessnawan wrote:</cite><blockquote><div class="quotebox"><cite>remotexy wrote:</cite><blockquote><p>Try next code:</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD
#include &lt;ESP8266WiFi.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID &quot;ANDLYSTA&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;baitijannati&quot;
#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN &quot;16909da5f60077751bd4598cbb649564&quot;


// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255, 14, 0, 0, 0, 62, 0, 10, 186, 1,
  1, 0, 17, 23, 28, 28, 35, 31, 85, 80,
  0, 1, 0, 20, 57, 23, 23, 2, 31, 68,
  79, 87, 78, 0, 1, 0, 48, 86, 12, 12,
  2, 31, 88, 0, 129, 0, 17, 2, 28, 8,
  94, 65, 110, 116, 114, 105, 97, 110, 0, 7,
  5, 4, 12, 58, 8, 2, 26, 2, 11
};

// this structure defines all the variables and events of your control interface
struct {

  // input variables
  uint8_t button_1; // =1 if button pressed, else =0
  uint8_t button_2; // =1 if button pressed, else =0
  uint8_t RST; // =1 if button pressed, else =0
  char No_Antrian[11];  // string UTF8 end zero

  // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////



#include &lt;DMD2.h&gt;
#include &lt;SPI.h&gt;
#include &quot;calibri13.h&quot;

#define pin_A 16
#define pin_B 12
#define pin_sclk 0
#define pin_noe 15
#define panel_width 2
#define panel_heigh 2

SPIDMD dmd(panel_width, panel_heigh, pin_noe, pin_A, pin_B, pin_sclk);  // DMD controls the entire display

char dmdBuff[10];
int counter = 0;
int val = 0;
unsigned long previousMillis = 0;
const long interval = 1000;
//int debounce = 20;

void setup()
{

  delay(5000); // this is delay that i mentioned,if i uncomment this,the board cant be connected
  RemoteXY_Init ();
  // TODO you setup code
  dmd.beginNoTimer();
  dmd.setBrightness(255);
  dmd.selectFont(calibri13);
  dmd.begin();
  dmd.clearScreen();
  delay(20);
}


int pev_button_1 = 0;
int pev_button_2= 0;
int pev_RST  = 0;

void loop()
{
  RemoteXY_Handler ();

  sprintf(dmdBuff, &quot;%.4d&quot;, counter);
  dmd.drawString( 4, 2, dmdBuff );

  strcpy  (RemoteXY.No_Antrian, dmdBuff );


  if ((pev_button_1 == 0) &amp;&amp; (RemoteXY.button_1 == 1)) {
    counter++;
  } 
  if ((pev_RST  == 0) &amp;&amp; (RemoteXY.RST== 1)) {
    dmd.clearScreen();
    counter = 0;
  } 
  if ((pev_button_2 == 0) &amp;&amp; (RemoteXY.button_2 == 1)) {
    counter--;
  }

  pev_button_1  = RemoteXY.button_1;
  pev_button_2  = RemoteXY.button_2;
  pev_RST   = RemoteXY.RST;

  
}</code></pre></div></blockquote></div><br /><p>will try this in a minute thank you very much</p></blockquote></div><p>now try this with pro license of remotexy.<br />thanks,i already try the code,but it is only prevent me to doubled input,the tap still doesnt work,also the display queue number doesn&#039;t update in real time,i have to close and open the remotexy to get an update of the display queue number.the delay MUST before i begin the dmd,so i move the delay here it is the latest sketch i uploaded</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD
#include &lt;ESP8266WiFi.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID &quot;ANDLYSTA&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;baitijannati&quot;
#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN &quot;16909da5f60077751bd4598cbb649564&quot;


// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255, 14, 0, 0, 0, 62, 0, 10, 186, 1,
  1, 0, 17, 23, 28, 28, 35, 31, 85, 80,
  0, 1, 0, 20, 57, 23, 23, 2, 31, 68,
  79, 87, 78, 0, 1, 0, 48, 86, 12, 12,
  2, 31, 88, 0, 129, 0, 17, 2, 28, 8,
  94, 65, 110, 116, 114, 105, 97, 110, 0, 7,
  5, 4, 12, 58, 8, 2, 26, 2, 11
};

// this structure defines all the variables and events of your control interface
struct {

  // input variables
  uint8_t button_1; // =1 if button pressed, else =0
  uint8_t button_2; // =1 if button pressed, else =0
  uint8_t RST; // =1 if button pressed, else =0
  char No_Antrian[11];  // string UTF8 end zero

  // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////



#include &lt;DMD2.h&gt;
#include &lt;SPI.h&gt;
#include &quot;calibri13.h&quot;

#define pin_A 16
#define pin_B 12
#define pin_sclk 0
#define pin_noe 15
#define panel_width 2
#define panel_heigh 2

SPIDMD dmd(panel_width, panel_heigh, pin_noe, pin_A, pin_B, pin_sclk);  // DMD controls the entire display

char dmdBuff[10];
int counter = 0;
int val = 0;
unsigned long previousMillis = 0;
const long interval = 1000;
//int debounce = 20;

void setup()
{

  
  RemoteXY_Init ();
  // TODO you setup code
  delay(5000); // this is delay that i mentioned,if i uncomment this,the board cant be connected
  dmd.beginNoTimer();
  dmd.setBrightness(255);
  dmd.selectFont(calibri13);
  dmd.begin();
  dmd.clearScreen();
  delay(20);
}


int pev_button_1 = 0;
int pev_button_2= 0;
int pev_RST  = 0;

void loop()
{
  RemoteXY_Handler ();

  sprintf(dmdBuff, &quot;%.4d&quot;, counter);
  dmd.drawString( 4, 2, dmdBuff );

  strcpy  (RemoteXY.No_Antrian, dmdBuff );


  if ((pev_button_1 == 0) &amp;&amp; (RemoteXY.button_1 == 1)) {
    counter++;
  } 
  if ((pev_RST  == 0) &amp;&amp; (RemoteXY.RST== 1)) {
    dmd.clearScreen();
    counter = 0;
  } 
  if ((pev_button_2 == 0) &amp;&amp; (RemoteXY.button_2 == 1)) {
    counter--;
  }

  pev_button_1  = RemoteXY.button_1;
  pev_button_2  = RemoteXY.button_2;
  pev_RST   = RemoteXY.RST;

  
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (giessnawan)]]></author>
			<pubDate>Thu, 30 Apr 2020 05:50:24 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2909#p2909</guid>
		</item>
		<item>
			<title><![CDATA[Re: Remotexy Wemos D1 R1 with P10 DMD]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2908#p2908</link>
			<description><![CDATA[<div class="quotebox"><cite>remotexy wrote:</cite><blockquote><p>Try next code:</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD
#include &lt;ESP8266WiFi.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID &quot;ANDLYSTA&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;baitijannati&quot;
#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN &quot;16909da5f60077751bd4598cbb649564&quot;


// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255, 14, 0, 0, 0, 62, 0, 10, 186, 1,
  1, 0, 17, 23, 28, 28, 35, 31, 85, 80,
  0, 1, 0, 20, 57, 23, 23, 2, 31, 68,
  79, 87, 78, 0, 1, 0, 48, 86, 12, 12,
  2, 31, 88, 0, 129, 0, 17, 2, 28, 8,
  94, 65, 110, 116, 114, 105, 97, 110, 0, 7,
  5, 4, 12, 58, 8, 2, 26, 2, 11
};

// this structure defines all the variables and events of your control interface
struct {

  // input variables
  uint8_t button_1; // =1 if button pressed, else =0
  uint8_t button_2; // =1 if button pressed, else =0
  uint8_t RST; // =1 if button pressed, else =0
  char No_Antrian[11];  // string UTF8 end zero

  // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////



#include &lt;DMD2.h&gt;
#include &lt;SPI.h&gt;
#include &quot;calibri13.h&quot;

#define pin_A 16
#define pin_B 12
#define pin_sclk 0
#define pin_noe 15
#define panel_width 2
#define panel_heigh 2

SPIDMD dmd(panel_width, panel_heigh, pin_noe, pin_A, pin_B, pin_sclk);  // DMD controls the entire display

char dmdBuff[10];
int counter = 0;
int val = 0;
unsigned long previousMillis = 0;
const long interval = 1000;
//int debounce = 20;

void setup()
{

  delay(5000); // this is delay that i mentioned,if i uncomment this,the board cant be connected
  RemoteXY_Init ();
  // TODO you setup code
  dmd.beginNoTimer();
  dmd.setBrightness(255);
  dmd.selectFont(calibri13);
  dmd.begin();
  dmd.clearScreen();
  delay(20);
}


int pev_button_1 = 0;
int pev_button_2= 0;
int pev_RST  = 0;

void loop()
{
  RemoteXY_Handler ();

  sprintf(dmdBuff, &quot;%.4d&quot;, counter);
  dmd.drawString( 4, 2, dmdBuff );

  strcpy  (RemoteXY.No_Antrian, dmdBuff );


  if ((pev_button_1 == 0) &amp;&amp; (RemoteXY.button_1 == 1)) {
    counter++;
  } 
  if ((pev_RST  == 0) &amp;&amp; (RemoteXY.RST== 1)) {
    dmd.clearScreen();
    counter = 0;
  } 
  if ((pev_button_2 == 0) &amp;&amp; (RemoteXY.button_2 == 1)) {
    counter--;
  }

  pev_button_1  = RemoteXY.button_1;
  pev_button_2  = RemoteXY.button_2;
  pev_RST   = RemoteXY.RST;

  
}</code></pre></div></blockquote></div><br /><p>will try this in a minute thank you very much</p>]]></description>
			<author><![CDATA[null@example.com (giessnawan)]]></author>
			<pubDate>Thu, 30 Apr 2020 05:04:12 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2908#p2908</guid>
		</item>
		<item>
			<title><![CDATA[Re: Remotexy Wemos D1 R1 with P10 DMD]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2907#p2907</link>
			<description><![CDATA[<div class="quotebox"><cite>remotexy wrote:</cite><blockquote><div class="quotebox"><cite>giessnawan wrote:</cite><blockquote><p>- does remotexy have autoconnect features?,like if the wifi cant be established, the board will become AP, then i can access with ip address of the board to setup the SSID and Password.</p></blockquote></div><p>No this feature.</p></blockquote></div><br /><p>or can i insert autoconnect library together?</p>]]></description>
			<author><![CDATA[null@example.com (giessnawan)]]></author>
			<pubDate>Thu, 30 Apr 2020 05:03:08 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2907#p2907</guid>
		</item>
		<item>
			<title><![CDATA[Re: Remotexy Wemos D1 R1 with P10 DMD]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2906#p2906</link>
			<description><![CDATA[<div class="quotebox"><cite>giessnawan wrote:</cite><blockquote><p>- does remotexy have autoconnect features?,like if the wifi cant be established, the board will become AP, then i can access with ip address of the board to setup the SSID and Password.</p></blockquote></div><p>No this feature.</p>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Thu, 30 Apr 2020 04:49:26 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2906#p2906</guid>
		</item>
		<item>
			<title><![CDATA[Re: Remotexy Wemos D1 R1 with P10 DMD]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2905#p2905</link>
			<description><![CDATA[<p>Try next code:</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD
#include &lt;ESP8266WiFi.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID &quot;ANDLYSTA&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;baitijannati&quot;
#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN &quot;16909da5f60077751bd4598cbb649564&quot;


// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255, 14, 0, 0, 0, 62, 0, 10, 186, 1,
  1, 0, 17, 23, 28, 28, 35, 31, 85, 80,
  0, 1, 0, 20, 57, 23, 23, 2, 31, 68,
  79, 87, 78, 0, 1, 0, 48, 86, 12, 12,
  2, 31, 88, 0, 129, 0, 17, 2, 28, 8,
  94, 65, 110, 116, 114, 105, 97, 110, 0, 7,
  5, 4, 12, 58, 8, 2, 26, 2, 11
};

// this structure defines all the variables and events of your control interface
struct {

  // input variables
  uint8_t button_1; // =1 if button pressed, else =0
  uint8_t button_2; // =1 if button pressed, else =0
  uint8_t RST; // =1 if button pressed, else =0
  char No_Antrian[11];  // string UTF8 end zero

  // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////



#include &lt;DMD2.h&gt;
#include &lt;SPI.h&gt;
#include &quot;calibri13.h&quot;

#define pin_A 16
#define pin_B 12
#define pin_sclk 0
#define pin_noe 15
#define panel_width 2
#define panel_heigh 2

SPIDMD dmd(panel_width, panel_heigh, pin_noe, pin_A, pin_B, pin_sclk);  // DMD controls the entire display

char dmdBuff[10];
int counter = 0;
int val = 0;
unsigned long previousMillis = 0;
const long interval = 1000;
//int debounce = 20;

void setup()
{

  delay(5000); // this is delay that i mentioned,if i uncomment this,the board cant be connected
  RemoteXY_Init ();
  // TODO you setup code
  dmd.beginNoTimer();
  dmd.setBrightness(255);
  dmd.selectFont(calibri13);
  dmd.begin();
  dmd.clearScreen();
  delay(20);
}


int pev_button_1 = 0;
int pev_button_2= 0;
int pev_RST  = 0;

void loop()
{
  RemoteXY_Handler ();

  sprintf(dmdBuff, &quot;%.4d&quot;, counter);
  dmd.drawString( 4, 2, dmdBuff );

  strcpy  (RemoteXY.No_Antrian, dmdBuff );


  if ((pev_button_1 == 0) &amp;&amp; (RemoteXY.button_1 == 1)) {
    counter++;
  } 
  if ((pev_RST  == 0) &amp;&amp; (RemoteXY.RST== 1)) {
    dmd.clearScreen();
    counter = 0;
  } 
  if ((pev_button_2 == 0) &amp;&amp; (RemoteXY.button_2 == 1)) {
    counter--;
  }

  pev_button_1  = RemoteXY.button_1;
  pev_button_2  = RemoteXY.button_2;
  pev_RST   = RemoteXY.RST;

  
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Thu, 30 Apr 2020 04:47:27 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2905#p2905</guid>
		</item>
		<item>
			<title><![CDATA[Remotexy Wemos D1 R1 with P10 DMD]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=2902#p2902</link>
			<description><![CDATA[<p>Hi this is my first poject using remotexy</p><p>here it is my goal<br />- using wemos d1 r1 as client to control Dot Matrix Display P10 32 x 64 ( 4 panel )<br />- the display will show the queue number from 0000 - 9999<br />- remotexy app have 3 button up,down,and reset <br />- using cloud server service</p><p>the problem i had<br />- the dmd using dmd2.h library, everytime i use dmd.begin function,the connection cannot be established between remotexy app and the wemos board.</p><p>- but if i put delay before dmd.begin on my void setup, connection can be established,but sometimes the wdt reset</p><p>- on remotexy app,button only response and send command to client if i hold it,if i tap, the button doesn&#039;t work</p><p>- since sometimes the button i hold it for too long,the count come doubled</p><p>- if the button need to be hold,can i display the counting on my remotexy also?,but i really hope the tap works, its better if i can display the counting on remotexy too, since the dmd display will be not visible to the operator on remotexy</p><p>- does remotexy have autoconnect features?,like if the wifi cant be established, the board will become AP, then i can access with ip address of the board to setup the SSID and Password.</p><p>here it is the sketch that i upload to my wemos board</p><div class="codebox"><pre><code>//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD
#include &lt;ESP8266WiFi.h&gt;

#include &lt;RemoteXY.h&gt;

// RemoteXY connection settings
#define REMOTEXY_WIFI_SSID &quot;ANDLYSTA&quot;
#define REMOTEXY_WIFI_PASSWORD &quot;baitijannati&quot;
#define REMOTEXY_CLOUD_SERVER &quot;cloud.remotexy.com&quot;
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN &quot;16909da5f60077751bd4598cbb649564&quot;


// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255, 14, 0, 0, 0, 62, 0, 10, 186, 1,
  1, 0, 17, 23, 28, 28, 35, 31, 85, 80,
  0, 1, 0, 20, 57, 23, 23, 2, 31, 68,
  79, 87, 78, 0, 1, 0, 48, 86, 12, 12,
  2, 31, 88, 0, 129, 0, 17, 2, 28, 8,
  94, 65, 110, 116, 114, 105, 97, 110, 0, 7,
  5, 4, 12, 58, 8, 2, 26, 2, 11
};

// this structure defines all the variables and events of your control interface
struct {

  // input variables
  uint8_t button_1; // =1 if button pressed, else =0
  uint8_t button_2; // =1 if button pressed, else =0
  uint8_t RST; // =1 if button pressed, else =0
  char No_Antrian[11];  // string UTF8 end zero

  // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0

} RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

#define PIN_BUTTON_1 1
#define PIN_BUTTON_2 3
#define PIN_RST 5

#include &lt;DMD2.h&gt;
#include &lt;SPI.h&gt;
#include &quot;calibri13.h&quot;

#define pin_A 16
#define pin_B 12
#define pin_sclk 0
#define pin_noe 15
#define panel_width 2
#define panel_heigh 2

SPIDMD dmd(panel_width, panel_heigh, pin_noe, pin_A, pin_B, pin_sclk);  // DMD controls the entire display

char dmdBuff[10];
int counter = 0;
int val = 0;
unsigned long previousMillis = 0;
const long interval = 1000;
//int debounce = 20;

void setup()
{
  RemoteXY_Init ();

  pinMode (PIN_BUTTON_1, OUTPUT);
  pinMode (PIN_BUTTON_2, OUTPUT);
  pinMode (PIN_RST, OUTPUT);
  delay(5000); // this is delay that i mentioned,if i uncomment this,the board cant be connected
  // TODO you setup code
  dmd.beginNoTimer();
  dmd.setBrightness(255);
  dmd.selectFont(calibri13);
  dmd.begin();
  dmd.clearScreen();
  delay(20);
}

void loop()
{
  RemoteXY_Handler ();

  digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1 == 0) ? LOW : HIGH);
  digitalWrite(PIN_BUTTON_2, (RemoteXY.button_2 == 0) ? LOW : HIGH);
  digitalWrite(PIN_RST, (RemoteXY.RST == 0) ? LOW : HIGH);

  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay()
  sprintf(dmdBuff, &quot;%.4d&quot;, counter);
  dmd.drawString( 4, 2, dmdBuff );

  unsigned long currentMillis = millis();
  if (currentMillis - previousMillis &gt;= interval) {
    // save the last time you blinked the LED
    previousMillis = currentMillis;

    val = digitalRead(PIN_BUTTON_1);
    if (val == 1) {
      counter++;
      //     delay(debounce);
    } else if (digitalRead(PIN_RST) == 1) {
      dmd.clearScreen();
      counter = 0;
      //    delay(debounce);
    }  else if (digitalRead(PIN_BUTTON_2) == 1) {
      counter--;
      //    delay(debounce);}
    }
  }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (giessnawan)]]></author>
			<pubDate>Wed, 29 Apr 2020 16:56:10 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=2902#p2902</guid>
		</item>
	</channel>
</rss>
