![]() Inherited by TextLCD, TextLCD_I2C, TextLCD_I2C_N, TextLCD_SPI, TextLCD_SPI_N, TextLCD_SPI_N_3_10, TextLCD_SPI_N_3_16, TextLCD_SPI_N_3_24, TextLCD_SPI_N_3_8, and TextLCD_SPI_N_3_9. TextLCD interface for driving 4-bit HD44780-based LCDs. If (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) ![]() PeriphClkInit.I2c1ClockSelection = RCC_I2C1CLKSOURCE_HSI PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_I2C1 If (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1 RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1 RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK If (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI ** Initializes the CPU, AHB and APB busses clocks * Initialize all configured peripherals */ * Reset of all peripherals, Initializes the Flash interface and the Systick. The address of display I have default 0x4E.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |