本文整理汇总了C++中BSP_LCD_Init函数的典型用法代码示例。如果您正苦于以下问题:C++ BSP_LCD_Init函数的具体用法?C++ BSP_LCD_Init怎么用?C++ BSP_LCD_Init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了BSP_LCD_Init函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DynamicSwitch_InitApplication
/**
* @brief DS application Init.
* @param None
* @retval None
*/
static void DynamicSwitch_InitApplication(void)
{
/* Configure Key Button */
BSP_PB_Init(BUTTON_TAMPER, BUTTON_MODE_GPIO);
/* Configure LED1 */
BSP_LED_Init(LED1);
/* Initialize the LCD */
BSP_LCD_Init();
/* LCD Layer Initialization */
BSP_LCD_LayerDefaultInit(1, LCD_FB_START_ADDRESS);
/* Selects the LCD Layer */
BSP_LCD_SelectLayer(1);
/* Enables the display */
BSP_LCD_DisplayOn();
/* Init the LCD Log module */
LCD_LOG_Init();
#ifdef USE_USB_HS
LCD_LOG_SetHeader((uint8_t *)" USB HS DynamicSwitch Host");
#else
LCD_LOG_SetHeader((uint8_t *)" USB FS DynamicSwitch Host");
#endif
LCD_UsrLog("USB Host library started.\n");
/* Start Dynamic Switch Interface */
LCD_UsrLog("Starting DynamicSwitch Demo\n");
LCD_UsrLog("Plug your device To Continue...\n");
}
示例2: LCD_Config
/**
* @brief LCD configuration
* @param None
* @retval None
*/
static void LCD_Config(void)
{
/* LCD Initialization */
/* Two layers are used in this application but not simultaneously
so "LCD_MAX_PCLK" is recommended to programme the maximum PCLK = 25,16 MHz */
BSP_LCD_Init();
/* LCD Initialization */
BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);
BSP_LCD_LayerDefaultInit(1, LCD_FB_START_ADDRESS+(BSP_LCD_GetXSize()*BSP_LCD_GetYSize()*4));
/* Enable the LCD */
BSP_LCD_DisplayOn();
/* Select the LCD Background Layer */
BSP_LCD_SelectLayer(0);
/* Clear the Background Layer */
BSP_LCD_Clear(LCD_COLOR_BLACK);
/* Select the LCD Foreground Layer */
BSP_LCD_SelectLayer(1);
/* Clear the Foreground Layer */
BSP_LCD_Clear(LCD_COLOR_BLACK);
/* Configure the transparency for foreground and background :
Increase the transparency */
BSP_LCD_SetTransparency(0, 0);
BSP_LCD_SetTransparency(1, 100);
}
示例3: CDC_InitApplication
/**
* @brief CDC application Init
* @param None
* @retval None
*/
static void CDC_InitApplication(void)
{
/* Configure LED1, LED2, LED3 and LED4 */
BSP_LED_Init(LED1);
BSP_LED_Init(LED2);
BSP_LED_Init(LED3);
BSP_LED_Init(LED4);
/* Configure KEY Button */
BSP_PB_Init(BUTTON_WAKEUP, BUTTON_MODE_GPIO);
/* Initialize the LCD */
BSP_LCD_Init();
BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);
BSP_LCD_SelectLayer(0);
/* Init the LCD Log module */
LCD_LOG_Init();
LCD_LOG_SetHeader((uint8_t *)" USB OTG FS CDC Host");
LCD_UsrLog("USB Host library started.\n");
/* Start CDC Interface */
USBH_UsrLog("Starting CDC Demo");
Menu_Init();
}
示例4: BSP_Init
/*-------------------------------------------------------
功能 : 初始化
输入 : void
返回 : void
Copyright : yitiandelan.
---------------------------------------------------------*/
void BSP_Init(void)
{
BSP_OSC_Init();
#if (configUSE_LED == 1)
BSP_LED_Init();
#endif
#if (configUSE_DAC == 1)
BSP_DAC_Init();
#endif
#if (configUSE_ADC123 == 1)
BSP_ADC_Init();
#endif
#if (configUSE_ExternADC == 1)
BSP_ADC_ex_Init();
#endif
#if (configUSE_LCD == 1)
BSP_LCD_Init();
#endif
#if (configUSE_CODEC == 1)
BSP_CODEC_Init();
#endif
#if (configUSE_PWM == 1)
BSP_TIM3_Init();
#endif
#if (configUSE_RTT == 1)
BSP_RTT_Init();
#endif
#if (configUSE_USB == 1)
BSP_USB_Init();
#endif
#if (configUSE_MPU == 1)
BSP_MPU_Init();
#endif
}
示例5: HID_InitApplication
/**
* @brief HID application Init.
* @param None
* @retval None
*/
static void HID_InitApplication(void)
{
/* Configure Key Button */
BSP_PB_Init(BUTTON_KEY, BUTTON_MODE_GPIO);
/* Configure Joystick in EXTI mode */
BSP_JOY_Init(JOY_MODE_EXTI);
/* Configure LED1, LED2, LED3 and LED4 */
BSP_LED_Init(LED1);
BSP_LED_Init(LED2);
BSP_LED_Init(LED3);
BSP_LED_Init(LED4);
/* Initialize the LCD */
BSP_LCD_Init();
/* Initialize the LCD Log module */
LCD_LOG_Init();
#ifdef USE_USB_HS
LCD_LOG_SetHeader((uint8_t *)" USB OTG HS HID Host");
#else
LCD_LOG_SetHeader((uint8_t *)" USB OTG FS HID Host");
#endif
LCD_UsrLog("USB Host library started.\n");
/* Start HID Interface */
USBH_UsrLog("Starting HID Demo");
HID_MenuInit();
}
示例6: DynamicSwitch_InitApplication
/**
* @brief DS application Init.
* @param None
* @retval None
*/
static void DynamicSwitch_InitApplication(void)
{
/* Configure Key Button */
BSP_PB_Init(BUTTON_KEY, BUTTON_MODE_EXTI);
/* Configure Joystick in EXTI mode */
BSP_JOY_Init(JOY_MODE_EXTI);
/* Configure LED1, LED2, LED3 and LED4 */
BSP_LED_Init(LED1);
BSP_LED_Init(LED2);
BSP_LED_Init(LED3);
BSP_LED_Init(LED4);
/* Initialize the LCD */
BSP_LCD_Init();
/* Initialize the LCD Log module */
LCD_LOG_Init();
#ifdef USE_USB_HS
LCD_LOG_SetHeader((uint8_t *)" USB HS DynamicSwitch Host");
#else
LCD_LOG_SetHeader((uint8_t *)" USB FS DynamicSwitch Host");
#endif
LCD_UsrLog("USB Host library started.\n");
/* Start Dynamic Switch Interface */
LCD_UsrLog("Starting DynamicSwitch Demo\n");
LCD_UsrLog("Plug your device To Continue...\n");
}
示例7: DUAL_InitApplication
/**
* @brief DUALCORE application Init.
* @param None
* @retval None
*/
static void DUAL_InitApplication(void)
{
/* Configure Key Button */
BSP_PB_Init(BUTTON_TAMPER, BUTTON_MODE_GPIO);
/* Configure LED1 */
BSP_LED_Init(LED1);
/* Initialize the LCD */
BSP_LCD_Init();
/* LCD Layer Initialization */
BSP_LCD_LayerDefaultInit(1, LCD_FB_START_ADDRESS);
/* Selects the LCD Layer */
BSP_LCD_SelectLayer(1);
/* Enables the display */
BSP_LCD_DisplayOn();
/* Init the LCD Log module */
LCD_LOG_Init();
LCD_LOG_SetHeader((uint8_t *)" USB OTG DualCore Host");
LCD_UsrLog("USB Host library started.\n");
/* Start DualCore Interface */
USBH_UsrLog("Initializing hardware....");
DUAL_MenuInit();
}
示例8: Display_Init
/**
* @brief Display Init (LCD)
* @param None
* @retval None
*/
static void Display_Init(void)
{
/* Initialize the LCD */
BSP_LCD_Init();
/* Clear the LCD */
BSP_LCD_Clear(LCD_COLOR_WHITE);
/* Set LCD Demo description */
BSP_LCD_SetTextColor(LCD_COLOR_BLUE);
BSP_LCD_FillRect(0, 0, BSP_LCD_GetXSize(), 80);
BSP_LCD_SetTextColor(LCD_COLOR_WHITE);
BSP_LCD_SetBackColor(LCD_COLOR_BLUE);
BSP_LCD_SetFont(&Font24);
BSP_LCD_DisplayStringAt(0, 0, (uint8_t*)MESSAGE1, CENTER_MODE);
BSP_LCD_SetFont(&Font12);
BSP_LCD_DisplayStringAt(0, 30, (uint8_t*)"ADC Low Power Mode", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, 45, (uint8_t*)"Press Tamper push-button", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, 60, (uint8_t*)MESSAGE3, CENTER_MODE);
/* Set the LCD Text Color */
BSP_LCD_SetTextColor(LCD_COLOR_BLUE);
BSP_LCD_DrawRect(10, 90, BSP_LCD_GetXSize() - 20, BSP_LCD_GetYSize()- 100);
BSP_LCD_DrawRect(11, 91, BSP_LCD_GetXSize() - 22, BSP_LCD_GetYSize()- 102);
BSP_LCD_SetFont(&Font24);
BSP_LCD_SetBackColor(LCD_COLOR_WHITE);
}
示例9: HID_InitApplication
/**
* @brief HID application Init
* @param None
* @retval None
*/
static void HID_InitApplication(void)
{
/* Configure KEY Button */
BSP_PB_Init(BUTTON_TAMPER, BUTTON_MODE_GPIO);
/* Configure Joystick in EXTI mode */
BSP_JOY_Init(JOY_MODE_EXTI);
/* Initialize the LCD */
BSP_LCD_Init();
/* Init the LCD Log module */
LCD_LOG_Init();
#ifdef USE_USB_HS
LCD_LOG_SetHeader((uint8_t *)" USB OTG HS HID Host");
#else
LCD_LOG_SetHeader((uint8_t *)" USB OTG FS HID Host");
#endif
LCD_UsrLog("USB Host library started.\n");
/* Start HID Interface */
HID_MenuInit();
}
示例10: HID_InitApplication
/**
* @brief HID application Init.
* @param None
* @retval None
*/
static void HID_InitApplication(void)
{
/* Configure Key Button */
BSP_PB_Init(BUTTON_TAMPER, BUTTON_MODE_EXTI);
/* Configure LED1*/
BSP_LED_Init(LED1);
/* Initialize the LCD */
BSP_LCD_Init();
/* LCD Layer Initialization */
BSP_LCD_LayerDefaultInit(1, LCD_FB_START_ADDRESS);
/* Select the LCD Layer */
BSP_LCD_SelectLayer(1);
/* Enable the display */
BSP_LCD_DisplayOn();
/* Initialize the LCD Log module */
LCD_LOG_Init();
#ifdef USE_USB_HS
LCD_LOG_SetHeader((uint8_t *)" USB OTG HS HID Host");
#else
LCD_LOG_SetHeader((uint8_t *)" USB OTG FS HID Host");
#endif
LCD_UsrLog("USB Host library started.\n");
/* Start HID Interface */
USBH_UsrLog("Starting HID Demo");
HID_MenuInit();
}
示例11: DUAL_InitApplication
/**
* @brief DUALCORE application Init.
* @param None
* @retval None
*/
static void DUAL_InitApplication(void)
{
/* Configure KEY Button */
BSP_PB_Init(BUTTON_KEY, BUTTON_MODE_GPIO);
/* Configure Joystick in EXTI mode */
BSP_JOY_Init(JOY_MODE_EXTI);
/* Configure the LEDs */
BSP_LED_Init(LED1);
BSP_LED_Init(LED2);
BSP_LED_Init(LED3);
BSP_LED_Init(LED4);
/* Initialize the LCD */
BSP_LCD_Init();
/* Initialize the LCD Log module */
LCD_LOG_Init();
LCD_LOG_SetHeader((uint8_t *)" USB OTG DualCore Host");
LCD_UsrLog("USB Host library started.\n");
/* Start DualCore Interface */
USBH_UsrLog("Initializing hardware....");
DUAL_MenuInit();
}
示例12: MSC_InitApplication
/**
* @brief MSC application Init.
* @param None
* @retval None
*/
static void MSC_InitApplication(void)
{
/* Configure Key Button */
BSP_PB_Init(BUTTON_WAKEUP, BUTTON_MODE_EXTI);
/* Configure LED1 */
BSP_LED_Init(LED1);
/* Initialize the LCD */
BSP_LCD_Init();
/* LCD Layer Initialization */
BSP_LCD_LayerDefaultInit(1, LCD_FB_START_ADDRESS);
/* Select the LCD Layer */
BSP_LCD_SelectLayer(1);
/* Enable the display */
BSP_LCD_DisplayOn();
/* Initialize the LCD Log module */
LCD_LOG_Init();
LCD_LOG_SetHeader((uint8_t *)" USB OTG FS MSC Host");
LCD_UsrLog("USB Host library started.\n");
/* Initialize menu and MSC process */
Menu_Init();
}
示例13: MSC_InitApplication
/**
* @brief MSC application Init.
* @param None
* @retval None
*/
static void MSC_InitApplication(void)
{
/* Configure Key Button */
BSP_PB_Init(BUTTON_KEY, BUTTON_MODE_GPIO);
/* Configure Joystick in EXTI mode */
BSP_JOY_Init(JOY_MODE_EXTI);
/* Configure LED1, LED2, LED3 and LED4 */
BSP_LED_Init(LED1);
BSP_LED_Init(LED2);
BSP_LED_Init(LED3);
BSP_LED_Init(LED4);
/* Initialize the LCD */
BSP_LCD_Init();
BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);
BSP_LCD_SelectLayer(0);
/* Init the LCD Log module */
LCD_LOG_Init();
#ifdef USE_USB_HS
LCD_LOG_SetHeader((uint8_t *)" USB OTG HS MSC Host");
#else
LCD_LOG_SetHeader((uint8_t *)" USB OTG FS MSC Host");
#endif
LCD_UsrLog("USB Host library started.\n");
/* Initialize menu and MSC process */
USBH_UsrLog("Starting MSC Demo");
Menu_Init();
}
示例14: main
/**
* @brief Main program
* @param None
* @retval None
*/
int main(void)
{
/* STM32F4xx HAL library initialization:
- Configure the Flash prefetch, instruction and Data caches
- Configure the Systick to generate an interrupt each 1 msec
- Set NVIC Group Priority to 4
- Global MSP (MCU Support Package) initialization
*/
HAL_Init();
/* Configure the system clock to 168 MHz */
SystemClock_Config();
/*##-1- Initialize the SRAM ################################################*/
BSP_SRAM_Init();
/*##-2- Initialize the LCD #################################################*/
BSP_LCD_Init();
/*##-3- Camera Initialization and start capture ############################*/
/* Initialize the Camera */
BSP_CAMERA_Init(CAMERA_R320x240);
/* Start the Camera Capture */
BSP_CAMERA_ContinuousStart((uint8_t *)CAMERA_FRAME_BUFFER);
/* Infinite loop */
while (1)
{
}
}
示例15: LCD_Config
/**
* @brief LCD configuration.
* @param None
* @retval None
*/
static void LCD_Config(void)
{
/* LCD Initialization */
BSP_LCD_Init();
/* LCD Layers Initialization */
BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS);
BSP_LCD_LayerDefaultInit(1, (LCD_FB_START_ADDRESS+(BSP_LCD_GetXSize()*BSP_LCD_GetYSize()*4)));
/* Enable the LCD */
BSP_LCD_DisplayOn();
/* Set LCD Background Layer */
BSP_LCD_SelectLayer(0);
/* Clear the Background Layer */
BSP_LCD_Clear(LCD_COLOR_WHITE);
/* Set LCD Foreground Layer */
BSP_LCD_SelectLayer(1);
/* Clear the Foreground Layer */
BSP_LCD_Clear(LCD_COLOR_BLACK);
/* Configure and enable the Color Keying feature */
BSP_LCD_SetColorKeying(1, 0);
/* Configure the transparency for foreground: Increase the transparency */
BSP_LCD_SetTransparency(1, 100);
}