Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. TextLCDType lcd;
  2. TextLCD_Init(&lcd, LCD_RS_GPIO_Port, LCD_RS_Pin, LCD_RW_Pin, LCD_E_Pin, LCD_D0_GPIO_Port,
  3. (LCD_D0_Pin | LCD_D1_Pin | LCD_D2_Pin | LCD_D3_Pin | LCD_D4_Pin | LCD_D4_Pin | LCD_D5_Pin | LCD_D6_Pin | LCD_D7_Pin));
  4.  
  5. //Start PMW, set the value to 0 at the beginning
  6. HAL_TIM_Base_Start(&htim10);
  7. HAL_TIM_PWM_Start(&htim10, TIM_CHANNEL_1);
  8. __HAL_TIM_SET_COMPARE(&htim10, TIM_CHANNEL_1, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement