|
1 | | -/*! |
2 | | - * @file Adafruit_Fingerprint.cpp |
3 | | - * |
4 | | - * @mainpage Adafruit Fingerprint Sensor Library |
5 | | - * |
6 | | - * @section intro_sec Introduction |
7 | | - * |
8 | | - * This is a library for our optical Fingerprint sensor |
9 | | - * |
10 | | - * Designed specifically to work with the Adafruit Fingerprint sensor |
11 | | - * ----> http://www.adafruit.com/products/751 |
12 | | - * |
13 | | - * These displays use TTL Serial to communicate, 2 pins are required to |
14 | | - * interface |
15 | | - * Adafruit invests time and resources providing this open source code, |
16 | | - * please support Adafruit and open-source hardware by purchasing |
17 | | - * products from Adafruit! |
18 | | - * |
19 | | - * @section author Author |
20 | | - * |
21 | | - * Written by Limor Fried/Ladyada for Adafruit Industries. |
22 | | - * |
23 | | - * @section license License |
24 | | - * |
25 | | - * BSD license, all text above must be included in any redistribution |
26 | | - * |
27 | | - */ |
| 1 | +/*************************************************** |
| 2 | + This is a library for our optical Fingerprint sensor |
| 3 | +
|
| 4 | + Designed specifically to work with the Adafruit Fingerprint sensor |
| 5 | + ----> http://www.adafruit.com/products/751 |
| 6 | +
|
| 7 | + These displays use TTL Serial to communicate, 2 pins are required to |
| 8 | + interface |
| 9 | + Adafruit invests time and resources providing this open source code, |
| 10 | + please support Adafruit and open-source hardware by purchasing |
| 11 | + products from Adafruit! |
| 12 | +
|
| 13 | + Written by Limor Fried/Ladyada for Adafruit Industries. |
| 14 | + BSD license, all text above must be included in any redistribution |
| 15 | + ****************************************************/ |
28 | 16 |
|
29 | 17 | #include "Adafruit_Fingerprint.h" |
30 | 18 |
|
31 | 19 | //#define FINGERPRINT_DEBUG |
32 | 20 |
|
33 | | -/// @cond DISABLE |
34 | 21 | #if ARDUINO >= 100 |
35 | | -/// @endcond |
36 | | - |
37 | 22 | #define SERIAL_WRITE(...) mySerial->write(__VA_ARGS__) |
38 | | -/// @cond DISABLE |
39 | 23 | #else |
40 | | -/// @endcond |
41 | | - |
42 | 24 | #define SERIAL_WRITE(...) mySerial->write(__VA_ARGS__, BYTE) |
43 | | -/// @cond DISABLE |
44 | 25 | #endif |
45 | | -/// @endcond |
46 | 26 |
|
47 | 27 | #define SERIAL_WRITE_U16(v) \ |
48 | 28 | SERIAL_WRITE((uint8_t)(v >> 8)); \ |
|
66 | 46 | PUBLIC FUNCTIONS |
67 | 47 | ***************************************************************************/ |
68 | 48 |
|
69 | | -/// @cond DISABLE |
70 | 49 | #if defined(__AVR__) || defined(ESP8266) || defined(FREEDOM_E300_HIFIVE1) |
71 | | -/// @endcond |
72 | 50 | /**************************************************************************/ |
73 | 51 | /*! |
74 | 52 | @brief Instantiates sensor with Software Serial |
@@ -118,14 +96,10 @@ void Adafruit_Fingerprint::begin(uint32_t baudrate) { |
118 | 96 |
|
119 | 97 | if (hwSerial) |
120 | 98 | hwSerial->begin(baudrate); |
121 | | -/// @cond DISABLE |
122 | 99 | #if defined(__AVR__) || defined(ESP8266) || defined(FREEDOM_E300_HIFIVE1) |
123 | | -/// @endcond |
124 | 100 | if (swSerial) |
125 | 101 | swSerial->begin(baudrate); |
126 | | -/// @cond DISABLE |
127 | 102 | #endif |
128 | | -/// @endcond |
129 | 103 | } |
130 | 104 |
|
131 | 105 | /**************************************************************************/ |
|
0 commit comments