Skip to content

Commit 1663c05

Browse files
committed
Fix avr support after testing on esp32, esp8266 and avr
1 parent 120e4d1 commit 1663c05

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

examples/read_to_serial/read_to_serial.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/*
22
* A simple example to interface with rdm6300 rfid reader.
33
*
4-
* Connect the rdm6300 to VCC=5V, GND=GND, TX=any GPIO (this case GPIO_2)
4+
* Connect the rdm6300 to VCC=5V, GND=GND, TX=any GPIO (this case GPIO-04)
55
* Note: for ESP* or other 3.3V based microcontroller,
66
* you must divide the TX out of the rdm6300 to the 3.3V levels,
77
* I used the following resistor divider:
88
* GND--<2K resistor>--GPIO_2--<1K resistor>--TX(rdm6300).
99
*
10-
* Arad Eizen (https://github.com/arduino12) 23/09/18.
10+
* Arad Eizen (https://github.com/arduino12) 23/09/18, 08/05/19.
1111
*/
1212
#include <rdm6300.h>
1313

14-
#define RDM6300_RX_PIN 2
14+
#define RDM6300_RX_PIN 4
1515
#define READ_LED_PIN 13
1616

1717
Rdm6300 rdm6300;
@@ -25,7 +25,7 @@ void setup()
2525

2626
rdm6300.begin(RDM6300_RX_PIN);
2727

28-
Serial.println("Place RFID tag near the rdm6300...");
28+
Serial.println("\nPlace RFID tag near the rdm6300...");
2929
}
3030

3131
void loop()

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rdm6300",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"keywords": "rdm6300, rfid",
55
"description": "A simple library to interface with rdm6300 rfid reader.",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Rdm6300
2-
version=1.1.0
2+
version=1.1.1
33
author=Arad Eizen
44
maintainer=Arad Eizen <https://github.com/arduino12>
55
sentence=A simple library to interface with rdm6300 rfid reader.

src/rdm6300.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* A simple library to interface with rdm6300 rfid reader.
3-
* Arad Eizen (https://github.com/arduino12) 23/09/18.
3+
* Arad Eizen (https://github.com/arduino12) 23/09/18, 08/05/19.
44
*/
55

66
#include "rdm6300.h"
@@ -23,7 +23,7 @@ void Rdm6300::begin(int rx_pin, uint8_t uart_nr)
2323
}
2424
#endif
2525
#ifdef RDM6300_SOFTWARE_SERIAL
26-
if (!_hardware_serial) {
26+
if (!_stream) {
2727
_stream = _software_serial = new SoftwareSerial(rx_pin, -1);
2828
_software_serial->begin(RDM6300_BAUDRATE);
2929
}

src/rdm6300.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class Rdm6300
4040
uint32_t get_tag_id(void);
4141
bool is_tag_near(void);
4242
private:
43-
void _begin(void);
4443
#ifdef RDM6300_HARDWARE_SERIAL
4544
HardwareSerial *_hardware_serial = NULL;
4645
#endif

0 commit comments

Comments
 (0)