zle dziala clear_buffor
This commit is contained in:
@@ -59,7 +59,8 @@ void _ITM_SendChar(char character, void* arg);
|
||||
|
||||
/* Private user code ---------------------------------------------------------*/
|
||||
/* USER CODE BEGIN 0 */
|
||||
|
||||
int8_t counter = 0;
|
||||
uint8_t tekst[32];
|
||||
/* USER CODE END 0 */
|
||||
|
||||
/**
|
||||
@@ -98,15 +99,25 @@ int main(void)
|
||||
// fctprintf(_ITM_SendChar, NULL, "This is a test: %X", 0xAA);
|
||||
// ssd1306_write_to_buffer(dualshock_btn[0], 24, 24, 10, 3);
|
||||
// font_print_str(&arial_8ptFontInfo,(uint8_t *) "AgBj0yH", 0, 10);
|
||||
// font_print_str(&arial_8ptFontInfo,(uint8_t *) "gBj0yHa", 0, 0);
|
||||
SSD1306_clear_buffer(10, 10, 64, 24, WHITE);
|
||||
SSD1306_display_all();
|
||||
// font_print_str(&arial_8ptFontInfo,(uint8_t *) "BarTooL jest Mistrzem", 0, 20);
|
||||
// SSD1306_clear_buffer(10, 10, 64, 24, WHITE);
|
||||
// SSD1306_display_all();
|
||||
/* USER CODE END 2 */
|
||||
|
||||
/* Infinite loop */
|
||||
/* USER CODE BEGIN WHILE */
|
||||
while (1)
|
||||
{
|
||||
sprintf((char*)tekst, "%3d", counter);
|
||||
// font_print_str(&arial_12ptFontInfo, tekst, 5, 16);
|
||||
SSD1306_clear(BLACK);
|
||||
font_print_str(&arial_8ptFontInfo, tekst, 40, 0);
|
||||
SSD1306_clear_buffer(24, 12, 0, counter++, WHITE);
|
||||
if (counter > 64+12){
|
||||
counter = -16;
|
||||
}
|
||||
SSD1306_display_all();
|
||||
HAL_Delay(100);
|
||||
/* USER CODE END WHILE */
|
||||
|
||||
/* USER CODE BEGIN 3 */
|
||||
|
||||
Reference in New Issue
Block a user