神州IV开法板的触摸屏程序,下载到开发板中,为啥不能触摸显示 触摸屏是在官方新买的,当屏按下时,INT引脚有电平变化,程序中的3_2我已经改成了2_8了,请大侠指导小弟吗,谢谢
显示没有问题,触摸是因为开发板源码有问题,我把程序修改后,现在实现了触摸,但是四周大约20个像素的范围触摸不到,等于说触摸四周,采集到的值在屏幕中间
请确定下载的最新例程,说一下是哪个例程有问题,您修改了哪里?
void SPI1_Config(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
GPIO_InitStructure.GPIO_Pin = SPI1_SCK | SPI1_MOSI;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(SPI1_PORT, &GPIO_InitStructure);
//SPI_MISO
GPIO_InitStructure.GPIO_Pin = SPI1_MISO;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
GPIO_Init(SPI1_PORT, &GPIO_InitStructure);
}
/* SPI1管脚定义*/
#define SPI1_PORT GPIOC
#define SPI1_SCK GPIO_Pin_10
#define SPI1_MISO GPIO_Pin_11
#define SPI1_MOSI GPIO_Pin_12
源码编译结果
stm32f10x_it.c: Error: command-line: #564: cannot open preprocessing output output file ".\神舟IV号\stm32f10x_it.d": No such file or directory
编译错误就是源码的工程模板错误