File tree 2 files changed +5
-20
lines changed
2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change 7
7
/* Use the default I2C address */
8
8
Adafruit_MFRC630 rfid = Adafruit_MFRC630(PDOWN_PIN);
9
9
10
- /* Prints out len bytes of hex data in table format. */
11
- static void print_buf_hex (uint8_t *buf, size_t len)
12
- {
13
- for (uint8_t i = 0 ; i < len; i++)
14
- {
15
- Serial.print (" 0x" );
16
- if (buf[i] < 16 )
17
- {
18
- Serial.print (" 0" );
19
- }
20
- Serial.print (buf[i], HEX);
21
- Serial.print (" " );
22
- }
23
- Serial.println (" " );
24
- }
25
10
/*
26
- * This more concise loop show the minimim requirements to dump the first 1K
27
- * of memory from a Mifare Classic or Mifare Plus compatible card. No meaningful
11
+ * This more concise loop show the minimim requirements to dump the UUID of
12
+ * a Mifare Classic or Mifare Plus compatible card / tag . No meaningful
28
13
* error-handling or debug output is present here, so this code is intended
29
14
* as a simple starting point for further work.
30
15
*/
31
16
bool radio_mifare1K_dump_minimal (void )
32
17
{
33
- bool rc;
34
-
35
18
/* Put the IC in a known-state. */
36
19
rfid.softReset ();
37
20
@@ -56,7 +39,9 @@ bool radio_mifare1K_dump_minimal(void)
56
39
Serial.print (" " );
57
40
}
58
41
Serial.println (" " );
42
+ return true ;
59
43
}
44
+ return false ;
60
45
}
61
46
62
47
/* *
Original file line number Diff line number Diff line change 1
1
name =Adafruit MFRC630 RFID
2
- version =1.1.2
2
+ version =1.1.3
3
3
author =Adafruit
4
4
maintainer =Adafruit <
[email protected] >
5
5
sentence =Arduino library for I2C and SPI access to the MFRC630 RFID/Near Field Communication chip
You can’t perform that action at this time.
0 commit comments