Simple Keypad / codelock example in C for AZ-Touch Pi0 wall mount touch screen (ili9341 display) with Pi Zero. This project based on the Raspberry-ili9340spi project by nopnop2002 and contains a set of demo programs to test the touch and tft also.
- Download the latest release
- Unzip the downloaded file
- Write the image to your SD card. See here for details.
- Boot your Raspberry Pi and wait for start.
You can follow this tutorial to setting the Wifi headless.
or you can use a Raspberry Pi (2/3/4) connected to Ethernet via Putty and SSH:
sudo raspi-config
--> 2 Network Options
--> N2 Wi-fi
cd ili9340spi_rpi
cc -o keypad keypad.c fontx.c ili9340.c xpt2046.c -lbcm2835 -lm -DBCM
sudo ./### start the program:
cd ili9340spi_rpi
sudo ./keypad
cd ili9340spi_rpi
cc -o demo demo.c fontx.c ili9340.c -lbcm2835 -lm -DBCM
cd ili9340spi_rpi
sudo ./demo
cd ili9340spi_rpi
cc -o touch touch.c fontx.c ili9340.c xpt2046.c -lbcm2835 -lm -DBCM
cd ili9340spi_rpi
sudo ./touch
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.