32 design.zip
大小:11.24MB
价格:15积分
下载量:0
评分:
5.0
上传者:weixin_56388252
更新日期:2024-08-07

STM32设计,里面各种外设

资源文件列表(大概)

文件名
大小
APP/
-
APP/24Cxx/
-
APP/24Cxx/24cxx.c
5.25KB
APP/24Cxx/24cxx.h
985B
APP/24Cxx/__Previews/
-
APP/24Cxx/__Previews/24cxx.cPreview
92.78KB
APP/adc/
-
APP/adc/adc.c
2.49KB
APP/adc/adc.h
128B
APP/adc_temp/
-
APP/adc_temp/adc_temp.c
2.96KB
APP/adc_temp/adc_temp.h
172B
APP/beep/
-
APP/beep/Beep.c
3.02KB
APP/beep/Beep.h
393B
APP/CCD/
-
APP/CCD/ccd.c
20B
APP/CCD/ccd.h
69B
APP/dht11/
-
APP/dht11/dht11.c
3.12KB
APP/dht11/dht11.h
472B
APP/ds18b20/
-
APP/ds18b20/ds18b20.c
6.15KB
APP/ds18b20/ds18b20.h
739B
APP/esp8266/
-
APP/esp8266/wifi_config.c
6.26KB
APP/esp8266/wifi_config.h
1.17KB
APP/esp8266/wifi_function.c
16.12KB
APP/esp8266/wifi_function.h
1.97KB
APP/exti/
-
APP/exti/exti.c
3.71KB
APP/exti/exti.h
93B
APP/flash/
-
APP/flash/flash.c
8.94KB
APP/flash/flash.h
1.91KB
APP/hanshu/
-
APP/hanshu/hanshu.c
1.89KB
APP/hanshu/hanshu.h
152B
APP/hc05/
-
APP/hc05/hc05.c
3.9KB
APP/hc05/hc05.h
285B
APP/HC_SR04/
-
APP/HC_SR04/HC_SR04.c
2.46KB
APP/HC_SR04/HC_SR04.h
343B
APP/hwjs/
-
APP/hwjs/hwjs.c
2.69KB
APP/hwjs/hwjs.h
199B
APP/iic/
-
APP/iic/iic.c
5.5KB
APP/iic/iic.h
902B
APP/input/
-
APP/input/input.c
3.51KB
APP/input/input.h
216B
APP/IR_evading/
-
APP/IR_evading/IR_evading.c
591B
APP/IR_evading/IR_evading.h
359B
APP/key/
-
APP/key/key.c
1.35KB
APP/key/key.h
915B
APP/led/
-
APP/led/led.c
1.31KB
APP/led/led.h
706B
APP/lsens/
-
APP/lsens/lsens.c
2.38KB
APP/lsens/lsens.h
172B
APP/motor/
-
APP/motor/motor.c
1.56KB
APP/motor/motor.h
440B
APP/oled/
-
APP/oled/oled.c
8.54KB
APP/oled/oled.h
1.74KB
APP/oled/oledfont.h
35.15KB
APP/oled/picture2.h
5.28KB
APP/ov7670/
-
APP/ov7670/ov7670.c
7.41KB
APP/ov7670/ov7670.h
881B
APP/ov7670/ov7670cfg.h
3.91KB
APP/ov7670/sccb.c
3.76KB
APP/ov7670/sccb.h
699B
APP/paj7620u2/
-
APP/paj7620u2/paj7620u2.c
6.34KB
APP/paj7620u2/paj7620u2.h
2.37KB
APP/paj7620u2/paj7620u2_cfg.h
2.11KB
APP/paj7620u2/paj7620u2_iic.c
4.08KB
APP/paj7620u2/paj7620u2_iic.h
564B
APP/pwm/
-
APP/pwm/pwm.c
1.73KB
APP/pwm/pwm.h
105B
APP/rgb/
-
APP/rgb/rgb.c
6.09KB
APP/rgb/rgb.h
1.09KB
APP/rs485/
-
APP/rs485/rs485.c
3.48KB
APP/rs485/rs485.h
385B
APP/rtc/
-
APP/rtc/rtc.c
11.73KB
APP/rtc/rtc.h
852B
APP/sd_sdio/
-
APP/sd_sdio/sd_sdio.c
60.61KB
APP/sd_sdio/sd_sdio.h
19.22KB
APP/spi/
-
APP/spi/spi.c
2.37KB
APP/spi/spi.h
217B
APP/tftlcd/
-
APP/tftlcd/font.h
76.5KB
APP/tftlcd/picture.h
616.7KB
APP/tftlcd/tftlcd.c
110.26KB
APP/tftlcd/tftlcd.h
4.86KB
APP/time/
-
APP/time/time.c
3.31KB
APP/time/time.h
141B
APP/touch_key/
-
APP/touch_key/touch_key.c
5.92KB
APP/touch_key/touch_key.h
319B
APP/usart3/
-
APP/usart3/usart3.c
3.69KB
APP/usart3/usart3.h
568B
DebugConfig/
-
DebugConfig/Target_1_STM32F103ZE_1.0.0.dbgconf
6.79KB
JLinkSettings.ini
671B
keilkilll.bat
399B
Libraries/
-
Libraries/CMSIS/
-
Libraries/CMSIS/core_cm3.c
16.87KB
Libraries/CMSIS/core_cm3.h
83.71KB
Libraries/CMSIS/startup_stm32f10x_hd.s
15.14KB
Libraries/CMSIS/system_stm32f10x.c
35.7KB
Libraries/CMSIS/system_stm32f10x.h
2.04KB
Libraries/STM32F10x_StdPeriph_Driver/
-
Libraries/STM32F10x_StdPeriph_Driver/inc/
-
Libraries/STM32F10x_StdPeriph_Driver/inc/misc.h
8.77KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_adc.h
21.18KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_bkp.h
7.38KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_can.h
26.91KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_cec.h
6.42KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_crc.h
2.11KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_dac.h
14.88KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_dbgmcu.h
3.73KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_dma.h
20.27KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_exti.h
6.66KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_flash.h
24.85KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_fsmc.h
26.38KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_gpio.h
19.7KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_i2c.h
29.33KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_iwdg.h
3.74KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_pwr.h
4.28KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_rcc.h
29.74KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_rtc.h
3.77KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_sdio.h
21.35KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_spi.h
17.31KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_tim.h
51.2KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_usart.h
16.16KB
Libraries/STM32F10x_StdPeriph_Driver/inc/stm32f10x_wwdg.h
2.9KB
Libraries/STM32F10x_StdPeriph_Driver/src/
-
Libraries/STM32F10x_StdPeriph_Driver/src/misc.c
6.88KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.c
46.09KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_bkp.c
8.26KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_can.c
44.05KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_cec.c
11.38KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.c
3.27KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_dac.c
18.64KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_dbgmcu.c
5.03KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.c
28.91KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_exti.c
6.8KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_flash.c
61.08KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_fsmc.c
34.65KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c
22.68KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.c
44.71KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_iwdg.c
4.8KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.c
8.55KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.c
50.07KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_rtc.c
8.4KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_sdio.c
28.25KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c
29.52KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
106.6KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_usart.c
37.41KB
Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_wwdg.c
5.6KB
Obj/
-
Obj/24cxx.crf
344.17KB
Obj/24cxx.d
2.12KB
Obj/24cxx.o
387.54KB
Obj/adc.crf
342.36KB
Obj/adc.d
2.01KB
Obj/adc.o
377.96KB
Obj/adc_temp.crf
342.45KB
Obj/adc_temp.d
2.19KB
Obj/adc_temp.o
379.93KB
Obj/beep.crf
342.99KB
Obj/beep.d
2.05KB
Obj/beep.o
385.79KB
Obj/ccd.crf
341.21KB
Obj/ccd.d
1.98KB
Obj/ccd.o
373.36KB
Obj/core_cm3.crf
3.86KB
Obj/core_cm3.d
110B
Obj/core_cm3.o
11.49KB
Obj/dht11.crf
348.13KB
Obj/dht11.d
2.12KB
Obj/dht11.o
389.76KB
Obj/ds18b20.crf
343.65KB
Obj/ds18b20.d
2.16KB
Obj/ds18b20.o
389.15KB
Obj/exti.crf
344.17KB
Obj/exti.d
2.14KB
Obj/exti.o
385.33KB
Obj/flash.crf
350.91KB
Obj/flash.d
2.21KB
Obj/flash.o
401.99KB
Obj/hanshu.crf
345.67KB
Obj/hanshu.d
2.3KB
Obj/hanshu.o
386.07KB
Obj/hc05.crf
357.93KB
Obj/hc05.d
2.32KB
Obj/hc05.o
393.21KB
Obj/hc_sr04.crf
343.12KB
Obj/hc_sr04.d
2.16KB
Obj/hc_sr04.o
384.43KB
Obj/hwjs.crf
342.34KB
Obj/hwjs.d
2.05KB
Obj/hwjs.o
380.04KB
Obj/iic.crf
344.49KB
Obj/iic.d
2.01KB
Obj/iic.o
388.44KB
Obj/input.crf
342.45KB
Obj/input.d
2.05KB
Obj/input.o
378.08KB
Obj/ir_evading.crf
341.82KB
Obj/ir_evading.d
2.23KB
Obj/ir_evading.o
376.68KB
Obj/key.crf
342.85KB
Obj/key.d
2.01KB
Obj/key.o
378.02KB
Obj/led.crf
342.26KB
Obj/led.d
1.98KB
Obj/led.o
375.39KB
Obj/Listings/
-
Obj/lsens.crf
342.39KB
Obj/lsens.d
2.09KB
Obj/lsens.o
379.37KB
Obj/main.crf
373.22KB
Obj/main.d
3.3KB
Obj/main.o
537.39KB
Obj/misc.crf
341.23KB
Obj/misc.d
2.05KB
Obj/misc.o
378.05KB
Obj/motor.crf
348.22KB
Obj/motor.d
2.2KB
Obj/motor.o
384.99KB
Obj/Objects/
-
Obj/oled.crf
351.84KB
Obj/oled.d
2.14KB
Obj/oled.o
409.22KB
Obj/paj7620u2.crf
356.1KB
Obj/paj7620u2.d
2.54KB
Obj/paj7620u2.o
398.75KB
Obj/paj7620u2_iic.crf
346.61KB
Obj/paj7620u2_iic.d
2.42KB
Obj/paj7620u2_iic.o
393.53KB
Obj/pwm.crf
342.56KB
Obj/pwm.d
2.01KB
Obj/pwm.o
376.9KB
Obj/rgb.crf
346.51KB
Obj/rgb.d
2.01KB
Obj/rgb.o
399.84KB
Obj/rs485.crf
343.19KB
Obj/rs485.d
2.09KB
Obj/rs485.o
381.95KB
Obj/rtc.crf
356.38KB
Obj/rtc.d
2.14KB
Obj/rtc.o
406.25KB
Obj/sccb.crf
344.1KB
Obj/sccb.d
2.05KB
Obj/sccb.o
388.9KB
Obj/spi.crf
342.11KB
Obj/spi.d
1.98KB
Obj/spi.o
378.04KB
Obj/sscom.ini
1.01KB
Obj/startup_stm32f10x_hd.d
70B
Obj/startup_stm32f10x_hd.lst
50.68KB
Obj/startup_stm32f10x_hd.o
6.54KB
Obj/stm32f10x_adc.crf
348.23KB
Obj/stm32f10x_adc.d
2.34KB
Obj/stm32f10x_adc.o
425.49KB
Obj/stm32f10x_bkp.crf
342.14KB
Obj/stm32f10x_bkp.d
2.34KB
Obj/stm32f10x_bkp.o
388.02KB
Obj/stm32f10x_exti.crf
341.77KB
Obj/stm32f10x_exti.d
2.37KB
Obj/stm32f10x_exti.o
382.2KB
Obj/stm32f10x_flash.crf
348.07KB
Obj/stm32f10x_flash.d
2.4KB
Obj/stm32f10x_flash.o
414.22KB
Obj/stm32f10x_fsmc.crf
346.61KB
Obj/stm32f10x_fsmc.d
2.37KB
Obj/stm32f10x_fsmc.o
399.71KB
Obj/stm32f10x_gpio.crf
344.64KB
Obj/stm32f10x_gpio.d
2.37KB
Obj/stm32f10x_gpio.o
398.46KB
Obj/stm32f10x_i2c.crf
347.02KB
Obj/stm32f10x_i2c.d
2.34KB
Obj/stm32f10x_i2c.o
419.7KB
Obj/stm32f10x_it.crf
340.64KB
Obj/stm32f10x_it.d
2.23KB
Obj/stm32f10x_it.o
382.13KB
Obj/stm32f10x_pwr.crf
342.05KB
Obj/stm32f10x_pwr.d
2.34KB
Obj/stm32f10x_pwr.o
383.82KB
Obj/stm32f10x_rcc.crf
348.13KB
Obj/stm32f10x_rcc.d
2.34KB
Obj/stm32f10x_rcc.o
418.47KB
Obj/stm32f10x_rtc.crf
342.05KB
Obj/stm32f10x_rtc.d
2.34KB
Obj/stm32f10x_rtc.o
390.22KB
Obj/stm32f10x_sdio.crf
345.24KB
Obj/stm32f10x_sdio.d
2.37KB
Obj/stm32f10x_sdio.o
413.3KB
Obj/stm32f10x_spi.crf
345.11KB
Obj/stm32f10x_spi.d
2.34KB
Obj/stm32f10x_spi.o
405.07KB
Obj/stm32f10x_tim.crf
362.79KB
Obj/stm32f10x_tim.d
2.34KB
Obj/stm32f10x_tim.o
504.99KB
Obj/stm32f10x_usart.crf
346.71KB
Obj/stm32f10x_usart.d
2.4KB
Obj/stm32f10x_usart.o
414.41KB
Obj/sys_tick.crf
341.97KB
Obj/sys_tick.d
2.14KB
Obj/sys_tick.o
378.17KB
Obj/system.crf
341.15KB
Obj/system.d
2.04KB
Obj/system.o
372.57KB
Obj/system_stm32f10x.crf
342.33KB
Obj/system_stm32f10x.d
2.32KB
Obj/system_stm32f10x.o
377.02KB
Obj/Template.axf
561.33KB
Obj/Template.build_log.htm
7.28KB
Obj/Template.hex
371.4KB
Obj/Template.htm
75.76KB
Obj/Template.lnp
1.34KB
Obj/Template.map
214.51KB
Obj/Template.sct
479B
Obj/Template_Target 1.dep
166.89KB
Obj/tftlcd.crf
365.71KB
Obj/tftlcd.d
2.31KB
Obj/tftlcd.o
455.34KB
Obj/time.crf
343.66KB
Obj/time.d
2.05KB
Obj/time.o
383.64KB
Obj/touch_key.crf
347.97KB
Obj/touch_key.d
2.33KB
Obj/touch_key.o
388.63KB
Obj/usart.crf
346.42KB
Obj/usart.d
2.1KB
Obj/usart.o
381.2KB
Obj/usart3.crf
349.53KB
Obj/usart3.d
2.34KB
Obj/usart3.o
385.61KB
Public/
-
Public/Sys_Tick.c
917B
Public/Sys_Tick.h
154B
Public/system.c
21B
Public/system.h
1.91KB
Public/usart.c
3.51KB
Public/usart.h
331B
Template.uvguix.Administrator
89.17KB
Template.uvguix.USER
83.17KB
Template.uvguix.YZ
90.87KB
Template.uvoptx
31.86KB
Template.uvprojx
26.69KB
User/
-
User/main.c
3.38KB
User/stm32f10x.h
619.08KB
User/stm32f10x_conf.h
3.18KB
User/stm32f10x_it.c
4.3KB
User/stm32f10x_it.h
2.04KB

资源内容介绍

STM32设计,里面各种外设
#include "tftlcd.h"#include "stdlib.h"#include "font.h" #include "usart.h" #include "Sys_Tick.h" //LCD的画笔颜色和背景色 u16 FRONT_COLOR=GREEN;//画笔颜色u16 BACK_COLOR=WHITE; //背景色 _tftlcd_data tftlcd_data; //写寄存器函数//cmd:寄存器值void LCD_WriteCmd(u16 cmd){#ifdef TFTLCD_HX8357DTFTLCD->LCD_CMD=cmd;//写入要写的寄存器序号#endif#ifdef TFTLCD_HX8357DNTFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_R61509VTFTLCD->LCD_CMD=cmd;//写入要写的寄存器序号#endif#ifdef TFTLCD_R61509VNTFTLCD->LCD_CMD=(cmd>>8)<<1;TFTLCD->LCD_CMD=(cmd&0xff)<<1;#endif#ifdef TFTLCD_R61509V3TFTLCD->LCD_CMD=cmd;//写入要写的寄存器序号#endif#ifdef TFTLCD_HX8352CTFTLCD->LCD_CMD=cmd<<8;#endif#ifdef TFTLCD_ILI9341TFTLCD->LCD_CMD=cmd<<8;#endif#ifdef TFTLCD_ILI9327TFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_ILI9325TFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_ILI9486TFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_ST7793TFTLCD->LCD_CMD=cmd>>8;TFTLCD->LCD_CMD=cmd&0xff;#endif#ifdef TFTLCD_SSD1963TFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_NT35510TFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_ILI9481TFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_R61509VETFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_SSD1963NTFTLCD->LCD_CMD=cmd;#endif#ifdef TFTLCD_ILI9488TFTLCD->LCD_CMD=cmd;#endif}//写数据//data:要写入的值void LCD_WriteData(u16 data){#ifdef TFTLCD_HX8357DTFTLCD->LCD_DATA=data;//写入要写的寄存器序号#endif#ifdef TFTLCD_HX8357DNTFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_R61509VTFTLCD->LCD_DATA=data;//写入要写的寄存器序号#endif#ifdef TFTLCD_R61509VNTFTLCD->LCD_DATA=(data>>8)<<1;TFTLCD->LCD_DATA=(data&0xff)<<1;#endif#ifdef TFTLCD_R61509V3TFTLCD->LCD_DATA=data;//写入要写的寄存器序号#endif#ifdef TFTLCD_HX8352CTFTLCD->LCD_DATA=data<<8;#endif#ifdef TFTLCD_ILI9341TFTLCD->LCD_DATA=data<<8;#endif#ifdef TFTLCD_ILI9327TFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_ILI9325TFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_ILI9486TFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_ST7793TFTLCD->LCD_DATA=data>>8;TFTLCD->LCD_DATA=data&0xff;#endif#ifdef TFTLCD_SSD1963TFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_NT35510TFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_ILI9481TFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_R61509VETFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_SSD1963NTFTLCD->LCD_DATA=data;#endif#ifdef TFTLCD_ILI9488TFTLCD->LCD_DATA=data;#endif}void LCD_WriteCmdData(u16 cmd,u16 data){LCD_WriteCmd(cmd);LCD_WriteData(data);}u32 LCD_RGBColor_Change(u16 color){u8 r,g,b=0;r=(color>>11)&0x1f;g=(color>>5)&0x3f;b=color&0x1f;return ((r<<13)|(g<<6)|(b<<1));}void LCD_WriteData_Color(u16 color){#ifdef TFTLCD_HX8357DTFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_HX8357DNTFTLCD->LCD_DATA=color>>8;TFTLCD->LCD_DATA=color&0xff;#endif#ifdef TFTLCD_R61509VTFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_R61509VNu32 recolor=0;recolor=LCD_RGBColor_Change(color);TFTLCD->LCD_DATA=(recolor>>9);TFTLCD->LCD_DATA=recolor;#endif#ifdef TFTLCD_R61509V3TFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_HX8352CTFTLCD->LCD_DATA=color&0xff00;TFTLCD->LCD_DATA=color<<8;#endif#ifdef TFTLCD_ILI9341TFTLCD->LCD_DATA=color&0xff00;TFTLCD->LCD_DATA=color<<8;#endif#ifdef TFTLCD_ILI9327TFTLCD->LCD_DATA=color>>8;TFTLCD->LCD_DATA=color&0xff;#endif#ifdef TFTLCD_ILI9325TFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_ILI9486TFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_ST7793TFTLCD->LCD_DATA=color>>8;TFTLCD->LCD_DATA=color&0xff;#endif#ifdef TFTLCD_SSD1963TFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_NT35510TFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_ILI9481TFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_R61509VETFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_SSD1963NTFTLCD->LCD_DATA=color;#endif#ifdef TFTLCD_ILI9488TFTLCD->LCD_DATA=color>>8;TFTLCD->LCD_DATA=color&0xff;#endif}//读数据//返回值:读到的值u16 LCD_ReadData(void){#ifdef TFTLCD_HX8357Dreturn TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_HX8357DN//u16 ram1,ram2;//ram1=TFTLCD->LCD_DATA;//printf("ram1=%x ",ram1);//ram2=TFTLCD->LCD_DATA;//printf("ram2=%x \r\n",ram2);//ram2=ram2<<8|ram1;//return ram2;return TFTLCD->LCD_DATA;//return ((TFTLCD->LCD_DATA<<8)|(TFTLCD->LCD_DATA));#endif#ifdef TFTLCD_R61509Vreturn TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_R61509VN//return TFTLCD->LCD_DATA;u16 ram;ram=(TFTLCD->LCD_DATA)>>1;ram=ram<<8;ram|=(TFTLCD->LCD_DATA)>>1;return ram;#endif#ifdef TFTLCD_R61509V3return TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_HX8352Creturn ((TFTLCD->LCD_DATA<<8)|(TFTLCD->LCD_DATA));#endif#ifdef TFTLCD_ILI9341return TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_ILI9327u16 ram;ram=TFTLCD->LCD_DATA;ram=ram<<8;ram|=TFTLCD->LCD_DATA;return ram;#endif#ifdef TFTLCD_ILI9325return TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_ILI9486return TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_ST7793u16 ram;ram=TFTLCD->LCD_DATA;ram=ram<<8;ram|=TFTLCD->LCD_DATA;return ram;#endif#ifdef TFTLCD_SSD1963return TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_NT35510return TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_ILI9481return TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_R61509VEreturn TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_SSD1963Nreturn TFTLCD->LCD_DATA;#endif#ifdef TFTLCD_ILI9488u16 ram;ram=TFTLCD->LCD_DATA;ram=ram<<8;ram|=TFTLCD->LCD_DATA;return ram;#endif}//设置LCD显示方向//dir:0,竖屏;1,横屏void LCD_Display_Dir(u8 dir){tftlcd_data.dir=dir; //横屏/竖屏if(dir==0) //默认竖屏方向{#ifdef TFTLCD_HX8357DLCD_WriteCmd(0x36); //设置彩屏显示方向的寄存器LCD_WriteData(0x4c);tftlcd_data.height=480;tftlcd_data.width=320;#endif#ifdef TFTLCD_HX8357DNLCD_WriteCmd(0x36); //设置彩屏显示方向的寄存器LCD_WriteData(0x4c);tftlcd_data.height=480;tftlcd_data.width=320;#endif#ifdef TFTLCD_R61509VLCD_WriteCmd(0x0001); LCD_WriteData(0x0100);LCD_WriteCmd(0x0003);LCD_WriteData(0x1030);tftlcd_data.height=400;tftlcd_data.width=240;#endif#ifdef TFTLCD_R61509VNLCD_WriteCmd(0x0001); LCD_WriteData(0x0100);LCD_WriteCmd(0x0003);LCD_WriteData(0x1030);tftlcd_data.height=400;tftlcd_data.width=240;#endif#ifdef TFTLCD_R61509V3LCD_WriteCmd(0x0001); LCD_WriteData(0x0100);LCD_WriteCmd(0x0003);LCD_WriteData(0x1030);tftlcd_data.height=400;tftlcd_data.width=240;#endif#ifdef TFTLCD_HX8352CLCD_WriteCmd(0x36); //设置彩屏显示方向的寄存器LCD_WriteData(0x03); //03:U-D,L-R; 06:D-U,R-L;tftlcd_data.height=400;tftlcd_data.width=240;#endif#ifdef TFTLCD_ILI9341LCD_WriteCmd(0x36); //设置彩屏显示方向的寄存器LCD_WriteData(0x08); tftlcd_data.height=320;tftlcd_data.width=240;#endif#ifdef TFTLCD_ILI9327LCD_WriteCmd(0x36); //设置彩屏显示方向的寄存器LCD_WriteData(0x48); tftlcd_data.height=400;tftlcd_data.width=240;#endif#ifdef TFTLCD_ILI9325LCD_WriteCmd(0x0001); LCD_WriteData(0x0100);LCD_WriteCmd(0x0003); //设置彩屏显示方向的寄存器LCD_WriteData(0x1030); tftlcd_data.height=320;tftlcd_data.width=240;#endif#ifdef TFTLCD_ILI9486LCD_WriteCmd(0x36); //设置彩屏显示方向的寄存器LCD_WriteData(0x00); tftlcd_data.height=480;tftlcd_data.width=320;#endif#ifdef TFTLCD_ST7793LCD_WriteCmd(0x0001); LCD_WriteData(0x0100);LCD_WriteCmd(0x00

用户评论 (0)

发表评论

captcha

相关资源

测绘编程技术 大地坐标转换

在X南某知名211高校的测绘类大二内业实习中,运用C#语言开发一个数据处理与分析系统,不仅能够提升学生的编程技能,还能加深对测绘数据处理流程的理解。该项目旨在通过实践,让学生将课堂上学到的理论知识应用于实际问题的解决中,即便项目初始设计或某些功能实现上可能不完全精确或完美,但对于实习目的而言已足够充分。在开发过程中,建议学生根据实际需求调整和优化代码,特别是变量命名部分,应尽量避免使用过于笼统或不易理解的名称,转而采用更具描述性和项目特定性的命名方式。这样做不仅有助于代码的可读性和维护性,也是编程规范的重要体现。此外,编写实习报告时,虽然公式和核心算法逻辑可以参考教材或网络资料,但报告的其余部分,如项目背景、需求分析、设计思路、实现过程、测试结果及改进建议等,都应由学生自行撰写,体现个人对项目的深入理解及独立思考能力。总之,通过这样一次C#语言编程实践,学生不仅能够掌握一门重要的编程语言,还能在解决实际测绘数据处理问题的过程中,锻炼自己的问题分析能力、编程能力和团队协作能力,为未来的学习和职业生涯打下坚实的基础。同时,精心准备的实习报告也是展示自己学习成果和能力的重要途径。

828.6KB27积分

Linux学习笔记10-蜂鸣器实验代码

Linux学习笔记10---蜂鸣器实验代码

328.4KB23积分

基于Web的社区医院管理服务系统

基于java敬老院管理系统

9.89MB40积分

2021-CUMCM-C-yasNing.zip

2021-CUMCM-C-yasNing.zip

1.91MB15积分