#include "stm32f4xx.h" #include "stm32f4xx_rcc.c" #include "stm32f4xx_gpio.c" #include "LCD2x16.c" #include "dd.h" //GPIO_InitTypeDef GPIO_InitStructure; void main (void){ int counter = 0; LCD_init(); // init LCD LCD_string("LCD test", 0x04); // display title string while (1) { LCD_uInt16(counter++,0x40,0x01); // write to LCD, unsigned, 16 bits //LCD_sInt16(counter++,0x40,0x01); // write to LCD, signed, 16 bits //LCD_uInt32(counter++,0x40,0x01); // write to LCD, unsigned, 32 bits //LCD_sInt32(counter++,0x40,0x01); // write to LCD, signed, 32 bits //LCD_sInt3DG(counter++,0x40,0x01); // write to LCD, unsigned, 3 digits for (int i = 0; i<1000000; i++) {}; // waste some time }; }