View difference between Paste ID: 6S0g1DMt and JanMdjNH
SHOW: | | - or go back to the newest paste.
1
/**
2
\link https://github.com/minhazul-haque/WiFlyControlPad
3
*/
4
5
#include <SoftwareSerial.h>
6
7
SoftwareSerial WiFly(10, 11); // RX, TX
8
9
void setup()  
10
{
11-
  WiFly.begin(9200);
11+
  WiFly.begin(9600);
12
  Serial.begin(9600);
13
}
14
15
void loop()
16
{
17
  if (WiFly.available())
18-
    switch(WiFly.read())
18+
19-
    {
19+
    Serial.println(WiFly.read());
20-
    case 'Z': 
20+
21-
      digitalWrite(LEDPIN, HIGH);
21+
22-
      break;
22+