Demonstrates the use of the graphic API on the TFT display and capacitive touch.
#include <stdio.h>
#include <unistd.h>
#include "bcm2835.h"
#include "SPI.h"
#include "TFT.h"
#include "GFX.h"
#include "i2c.h"
#include "CAP1203.h"
{
unsigned char button = 0x00;
while(1)
{
if(button != 0)
{
switch(button)
{
case 1:
break;
case 2:
break;
case 3:
break;
default:
}
}
}
return 0;
}