SunFounder TS-10 10.1-inch Touch Screen
of the
attendance_statistics
dictionary and
present_time
as the value of the corresponding key. In this
way, the
attendance_statistics
dictionary stores the punch time of the current id.
Finally we write the
attendance_statistics
dictionary to a .csv file and name the file as
'attendance_sheet.'' + presen '.csv'
, so that we store the attendance sheet in time or-
der.
Note:
If you have written the person’s name in the MFRC522 RFID, then replace the
id
with
text
and your
attendance sheet will record the name of the person.
def
get_num
():
return
len
(attendance_list)
Returns the length of
attendance_list
, i.e. the number of attendees.
5.6 GPIO Programming
You can do some interesting projects by leading the Raspberry Pi pins out through a 40pin cable.
Note:
Refer to
instructions for extending the 40 pins of the Raspberry Pi to a breadboard.
SunFounder has a very complete course system about Raspberry Pi GPIO learning kits, such as the following two
learning kits.
•
Electronic Kit for Raspberry Pi and Arduino
This basic learning kit is suitable for the Raspberry Pi and Arduino novice. This kit teaches basic circuit design and
introduces Python programming for beginners.
•
This is an advanced Raspberry Pi teaching kit that contains a robust array of components. This kit teaches physical
computing and Python programming principles for beginners and advanced users.
5.6.1 Electronic Kit for Raspberry Pi and Arduino
Tutorial Link
https://docs.sunfounder.com/projects/electronic-kit/en/latest/index.html
Product Link
Global:
https://www.sunfounder.com/products/electronics-fun-kit
United States:
https://www.amazon.com/dp/product/B07QT78FXF
Germany:
https://www.amazon.de/dp/B07QT78FXF
Canada:
https://www.amazon.ca/dp/product/B07RQ7Z6G4
5.6.2 Da Vinci Kit for Raspberry Pi
Tutorial Link
https://docs.sunfounder.com/projects/davinci-kit-for-raspberry-pi/en/latest/
5.6. GPIO Programming
101
Summary of Contents for TS-10
Page 1: ...SunFounder TS 10 10 1 inch Touch Screen www sunfounder com Nov 19 2021 ...
Page 2: ......
Page 6: ...SunFounder TS 10 10 1 inch Touch Screen 2 CONTENTS ...
Page 9: ...SunFounder TS 10 10 1 inch Touch Screen 5 ...
Page 10: ...SunFounder TS 10 10 1 inch Touch Screen 6 Chapter 1 HARDWARE DESCRIPTION ...
Page 16: ...SunFounder TS 10 10 1 inch Touch Screen 12 Chapter 2 INSTALL THE RASPBERRY PI OS ...
Page 21: ...SunFounder TS 10 10 1 inch Touch Screen pi 3 Step 5 17 ...
Page 141: ...SunFounder TS 10 10 1 inch Touch Screen 5 7 Scratch Projects 137 ...
Page 165: ...SunFounder TS 10 10 1 inch Touch Screen 5 7 Scratch Projects 161 ...
Page 167: ...SunFounder TS 10 10 1 inch Touch Screen 5 7 Scratch Projects 163 ...
Page 181: ...SunFounder TS 10 10 1 inch Touch Screen 5 7 Scratch Projects 177 ...
Page 209: ...SunFounder TS 10 10 1 inch Touch Screen 205 ...
Page 210: ...SunFounder TS 10 10 1 inch Touch Screen 206 Chapter 7 3D PRINTED SUPPORT ...
Page 212: ...SunFounder TS 10 10 1 inch Touch Screen 208 Chapter 8 FAQ ...