Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZTB_LAB2020
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Robert Piotrowski
ZTB_LAB2020
Commits
63e9673a
Commit
63e9673a
authored
1 month ago
by
Tobiasz Dryjański
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
83c9a0da
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab03-i2c/README.md
+3
-3
3 additions, 3 deletions
lab03-i2c/README.md
with
3 additions
and
3 deletions
lab03-i2c/README.md
+
3
−
3
View file @
63e9673a
## Czytnik NFC
Sprawdz switch


-
Sprawdzenie poprawnej komunikacji z NF532 na magistrali I2C
```
bash
modprobe i2c_dev
...
...
@@ -16,7 +16,7 @@ device.name = "PN532 over I2C"
device.connstring
=
"pn532_i2c:/dev/i2c-9"
````
Po uruchomieniu komendy 'nfc-pool' przyłóż kartę NFC do czytnika (włącz obracanie ramienia z kartami NFC), powinien wyświetlić się UID karty.


### Obsługa czytnika w Pythonie:
-
Instalacja biblioteki py532lib:
...
...
@@ -38,7 +38,7 @@ while(True):
card_data
=
pn532
.
read_mifare
().
get_data
()
print
(
card_data
)
```


-
Przykładowy kod programu (UWAGA funkcja card.scan_field() jest nieblokująca) :
```
python
#!/usr/bin/env python3.6
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment