EasyManua.ls Logo

SunFounder TS7-Pro - GPIO Programming

Default Icon
235 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TS7-Pro 7-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.'' + present_date + '.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 Extend GPIO to Breadboard 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.
Da Vinci Kit for Raspberry Pi
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
126 Chapter 5. PROJECTS AND ACTIVITIES

Related product manuals