Skip to content

HWHardsoft/AZ-Touch-Pi0-Codelock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AZ-Touch-Pi0-Codelock

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.

AZ-Touch Pi0

Installation

  1. Download the latest release
  2. Unzip the downloaded file
  3. Write the image to your SD card. See here for details.
  4. Boot your Raspberry Pi and wait for start.

Configuration

Wifi settings

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

Keypad example

compilation:

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

TFT demo

AZ-Touch Pi0

compilation:

cd ili9340spi_rpi
cc -o demo demo.c fontx.c ili9340.c -lbcm2835 -lm -DBCM

start the program

cd ili9340spi_rpi
sudo ./demo

Touch demo

AZ-Touch Pi0

compilation:

cd ili9340spi_rpi
cc -o touch touch.c fontx.c ili9340.c xpt2046.c -lbcm2835 -lm -DBCM

start the program

cd ili9340spi_rpi
sudo ./touch

License

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.

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%