Cleanup
This commit is contained in:
parent
662a7a9b12
commit
7eedbfdf9b
8 changed files with 80 additions and 68 deletions
|
@ -4,8 +4,10 @@
|
|||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#if defined(FREERTOS)
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
#endif
|
||||
|
||||
#define LCD_L 320
|
||||
#define LCD_S 240
|
||||
|
@ -278,6 +280,16 @@ void Ili9341Fsmc::Print(char const *str, uint8_t len, bool transparent)
|
|||
}
|
||||
}
|
||||
|
||||
void Ili9341Fsmc::Delay(uint32_t ms)
|
||||
{
|
||||
#if defined(FREERTOS)
|
||||
vTaskDelay(pdMS_TO_TICKS(ms));
|
||||
#else
|
||||
LL_mDelay(ms);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void Ili9341Fsmc::Test()
|
||||
{
|
||||
// static PixelPair linebuf[320/2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue