A PIC18 GLCD touchscreen clock with a built-in sprite editor.

Overview

A PIC18 GLCD touchscreen clock with a built-in sprite editor. Shows how to connect a resistive touchscreen directly to a PIC with no additional hardware. Includes a ready-to-use touchscreen library for PIC.

Touchscreen Connection

Touchscreen connection diagram
Touchscreen connection diagram

Designed for EasyPIC3 board. Uses 4-wire resistive touchpanel with direct connection to PIC (RA0-RA3). X and Y coordinates are read using ADC.

C Source Code

Since this project has multiple source files, source code is not expanded here: please download the archive file below.

Download project

TouchClock project files

Download TouchClock-project.zip for mikroC PRO for PIC18F4620:

TouchClock-project.zip

Includes:

  • mikroC PRO project files for PIC18F4620
  • Multiple source files
  • Touchscreen library