Skip to content

Commit 5bf10c3

Browse files
committed
Add LICENSE.md, minor fixes
1 parent 89edf86 commit 5bf10c3

File tree

8 files changed

+685
-8
lines changed

8 files changed

+685
-8
lines changed

LICENSE.md

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ A simple library to interface with RDM6300 RFID reader.
66
* Using a single configurable GPIO pin.
77
* Can tell if the tag is still near the antenna.
88
* Both hardware and software uart (serial) support on esp8266.
9+
* Both SoftwareSerial and AltSoftSerial support.
910

1011
## Getting Started
1112

@@ -21,7 +22,8 @@ A simple RFID to serial reciver example can be found at:
2122
[```examples/read_to_serial/read_to_serial.ino```](examples/read_to_serial/read_to_serial.ino)
2223

2324
#### API
24-
* ```void begin(int rxPin)``` - Initialize the object to use the given GPIO pin as RX from the RDM6300.
25+
* ```void begin(Stream \*stream)``` - Initialize the object to use the given stream to read from the RDM6300.
26+
* ```void begin(int rxPin, uint8_t uart_nr=1)``` - Initialize the object to use the given GPIO pin as RX from the RDM6300.
2527
* ```bool update()``` - Updates the internal values by reading from the RDM6300, returns true on tag detection, must be called repeatedly!
2628
* ```uint32_t get_tag_id()``` - Returns the last tag id read by ```update```- can be called only once after ```update```.
2729
* ```bool is_tag_near()``` - Returns whether a tag is currently held near the antenna- can be called many times after ```update```.

examples/altsoftserial_based/altsoftserial_based.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* | Wiring-S | 6 | 4 | 5 |
1515
* | Sanguino | 14 | 12 | 13 |
1616
*
17-
* Arad Eizen (https://github.com/arduino12) 08/05/19, 09/06/19, 22/06/19.
17+
* Arad Eizen (https://github.com/arduino12).
1818
*/
1919

2020
#include <rdm6300.h>

examples/esp8266_hardware_uart/esp8266_hardware_uart.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* * GPIO-01 to GPIO-02 is for debug terminal output.
2424
*
25-
* Arad Eizen (https://github.com/arduino12) 08/05/19, 09/06/19.
25+
* Arad Eizen (https://github.com/arduino12).
2626
*/
2727

2828
#include <rdm6300.h>

examples/read_to_serial/read_to_serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Note that the rdm6300's TX line is 3.3V level,
66
* so it's save to use with both AVR* and ESP* microcontrollers.
77
*
8-
* Arad Eizen (https://github.com/arduino12) 23/09/18, 08/05/19, 09/06/19.
8+
* Arad Eizen (https://github.com/arduino12).
99
*/
1010

1111
#include <rdm6300.h>

keywords.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ is_tag_near KEYWORD2
2020
#######################################
2121
# Constants (LITERAL1)
2222
#######################################
23+
RDM6300_BAUDRATE LITERAL1
2324
RDM6300_PACKET_SIZE LITERAL1
2425
RDM6300_PACKET_BEGIN LITERAL1
2526
RDM6300_PACKET_END LITERAL1
2627
RDM6300_NEXT_READ_MS LITERAL1
27-
RDM6300_BAUDRATE LITERAL1
28+
RDM6300_READ_TIMEOUT LITERAL1

src/rdm6300.cpp

Lines changed: 1 addition & 1 deletion
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, 08/05/19.
3+
* Arad Eizen (https://github.com/arduino12).
44
*/
55

66
#include "rdm6300.h"

src/rdm6300.h

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

77
#ifndef _RDM6300_h_
@@ -35,7 +35,7 @@ class Rdm6300
3535
{
3636
public:
3737
void begin(Stream *stream);
38-
void begin(int rxPin, uint8_t uart_nr=1);
38+
void begin(int rx_pin, uint8_t uart_nr=1);
3939
void end(void);
4040
bool update(void);
4141
uint32_t get_tag_id(void);

0 commit comments

Comments
 (0)