cancel
Showing results for 
Search instead for 
Did you mean: 

Segger UI TouchScreen problem

megahercas6
Senior
Posted on January 12, 2014 at 21:00

Hello, i made reflow oven controller by using STM32F429i mcu with amoled and capacitive touchscreen. I get it display images correctly by using original stm32f429i-disco files, but i am having troubles to make capacitive touchscreen working.

I have working touchscreen program. it consist of two functions. first is init function for i2c, gpio and registers init for tp controller, secnd is interrupt to get new info about pointer position. so question is, how to rewrite original stm32f429i-disco program that it could run on my hardware.

volatile int ***=0,yyy=0,zzz=0;
void EXTI2_IRQHandler(void)
{
if(EXTI_GetITStatus(EXTI_Line2) != RESET)
{
char data[32];
int i=0;
I2C_start(sEEE_I2C, 0x80, I2C_Direction_Transmitter); 
spi_delay(500);
I2C_write(sEEE_I2C,0x00);
spi_delay(500);
I2C_start2(sEEE_I2C, 0x80, I2C_Direction_Receiver); 
spi_delay(500);
while(i

   
   This is what i did, but it dosent work. note that interrupt is working, and can update ***,yyy, and zzz inside interrupt. 
   
   So any one know how to get it working ? 
   
  

http://www.elementcom/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit/blog/2014/01/12/psoc-challange-smart-reflow-oven-main-controller-tested?et=blogs.comment.created#comment-29964

0 REPLIES 0