*入口参数:StartX 行起始坐标* EndX 行结束坐标 *StartY 列起始坐标* EndY 列结束坐标 pic 图片头指针 *出口参数:无* 说 明:图片取模格式为水平扫描,16位颜色模式 *调用方法:ºLCD_DrawPicture(0,0,100,100,(uint16_t*)demo);***/ void LCD_DrawPicture(uint16_t StartX,uint16_t Xend,uint16_...
importlcdimportimage lcd.init()img=image.Image("/sd/pic.bmp")#320*240lcd.display(img) 2.3.例程 3: 利用显示图片的方式显示英文# importlcdimportimage img=image.Image()img.draw_string(60,100,"hello maixpy",scale=2)lcd.display(img)
drv_st7735s_lcd_fill(0,0,LCD_W,LCD_H,WHITE); //显示图片,图片宽36,高24,具体要看自己的图片使用桌面软件生成的实际参数,这里的图片参数为93 * 26 drv_st7735s_show_pic(20,25,123,34,gImage_1); sample_st7735s_sleep(1); //屏幕显示白色 drv_st7735s_lcd_fill(0,0,LCD_W,LCD_H,WHITE...
drv_st7735s_lcd_fill(0,0,LCD_W,LCD_H,WHITE); //显示图片,图片宽36,高24,具体要看自己的图片使用桌面软件生成的实际参数,这里的图片参数为93 * 26 drv_st7735s_show_pic(20,25,123,34,gImage_1); sample_st7735s_sleep(1); //屏幕显示白色 drv_st7735s_lcd_fill(0,0,LCD_W,LCD_H,WHITE...
/* USER CODE BEGIN 2 */LCD_Init();//LCD初始化LCD_Fill(0,0,320,480,RED);LCD_Fill(0,0,320,480,WHITE);LCD_ShowString(0,0,"MCU:STM32H503RBT6",BLACK,WHITE,32,0);LCD_ShowString(0,32,"TOF:VL53L5CX",BLACK,WHITE,32,0);LCD_ShowString(0,64,"MODE: ",BLACK,WHITE,32,0);;//LC...
LCD_Fill(0,0,LCD_W,LCD_H,WHITE);//整个屏幕刷白色 /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while(1) { LCD_ShowString(0,0," you qing ",RED,WHITE,32,0);//字符串显示函数 LCD_ShowString(30,50,"LCD_W:",RED,WHITE,16,0); ...
Note: Before you test the LCD_ShowBMP example for displaying pictures, you need to copy the picture from the PIC folder to the root directory of a micro SD card, and insert the SD card into the slot in the backside of the LCD. Then run the examples. The micro SD card should be in...
lcdDrv.FillRGBRect = BSP_LCD_FillRGBRect;lcdDrv.DrawHLine = BSP_LCD_DrawHLine;lcdDrv.DrawV...
init_led();init_spi();LCD_Init();//LCD初始化LCD_Fill(0,0,LCD_W,LCD_H,WHITE);LCD_...
#include "pic.h" #include "stdio.h" #include "custom_ranging_sensor.h" #define TIMING_BUDGET (5U) /* 5 ms < TimingBudget < 1000 ms */ #define RANGING_FREQUENCY (200U) /* Ranging frequency Hz (shall be consistent with TimingBudget value) */ ...