基于STM32的12864串行程序.docVIP

  • 100
  • 0
  • 约1.26万字
  • 约 12页
  • 2017-10-19 发布于四川
  • 举报
/**********12864.c文件*************/ #include stm32f10x.h #include Lcd12864.h #include stdio.h #define BIT(Z) (1Z) void CS_Set_H() //RS { GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0; /*选中管脚1*/ GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz; /*最高输出速率10MHz*/ GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; /*上拉输出*/ GPIO_Init(GPIOC, GPIO_InitStructure); /*GPIO完成上面三行设置*/ GPIO_SetBits(GPIOC,GPIO_Pin_0); } void CS_Set_L() //RS { GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitStructure.GPIO_

文档评论(0)

1亿VIP精品文档

相关文档