Skip to content

Commit 8a6b092

Browse files
committed
We only need one constructor for the gateway sketch.
1 parent 9f3ec7f commit 8a6b092

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

SerialGateway/SerialGateway.ino

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
* - Inclusion button should be connected between digital pin 3 and GND
1616
* - RX/TX/ERR leds need to be connected between +5V (anode) and digital ping 6/5/4 with resistor 270-330R in a series
1717
*
18-
* LED purposes:
18+
* LEDs (OPTIONAL):
1919
* - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
2020
* - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
2121
* - ERR (red) - fast blink on error during transmission error or recieve crc error
2222
*/
2323

2424
#include <SPI.h>
25-
#include <MsTimer2.h>
25+
#include <MsTimer2.h>
2626
#include <PinChangeInt.h>
2727
#include <MyGateway.h>
2828
#include <stdarg.h>
@@ -31,13 +31,8 @@
3131
#define INCLUSION_MODE_PIN 3 // Digital pin used for inclusion mode button
3232

3333

34-
// No blink or button functionality. Use the vanilla constructor.
35-
//Gateway gw;
36-
37-
// To start gateway with include button and led blinking functionality enabled use this instead!
3834
MyGateway gw(9, 10, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, 6, 5, 4);
3935

40-
4136
char inputString[MAX_RECEIVE_LENGTH] = ""; // A string to hold incoming commands from serial/ethernet interface
4237
int inputPos = 0;
4338
boolean commandComplete = false; // whether the string is complete

0 commit comments

Comments
 (0)