Code:
=================================NewUnit_0.h
extern unsigned int *Xc, *Yc;
extern unsigned int t, u, a, b;
=================================Main.c
#include "NewUnit_0.h"
void main() {
Start_TP();
Xc = 1;
Yc = 1;
while (1) {
Check_TP();
GetCoordinates();
}
}
===============================abc_events_code.c
#include "NewUnit_0.h"
Xc = 0; //&a;
Yc = 0; //&b;
void GetCoordinates(){
if (TP_TFT_Press_Detect()) {
if (TP_TFT_Get_Coordinates(&Xc, &Yc ) > 120) {
t = *Xc;
u = *Yc;
ProgressBar1.Position = 180;
}
}
}
Please view errors screen shot
Thanks for any help greatly appreciated!