errornous TFT memory allocation corrected ( doubled )
This commit is contained in:
parent
c6d8f7da72
commit
e1996b4907
|
@ -19,7 +19,7 @@ void setup() {
|
|||
|
||||
// The buffer is memory mapped
|
||||
// You can directly draw on the display by writing to the buffer
|
||||
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
uint16_t *buffer = (uint16_t *)malloc(2*LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
|
||||
tft.begin((uint16_t *)buffer);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ void setup()
|
|||
{
|
||||
// The buffer is memory mapped
|
||||
// You can directly draw on the display by writing to the buffer
|
||||
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
uint16_t *buffer = (uint16_t *)malloc(2*LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
|
||||
tft.begin((uint16_t *)buffer);
|
||||
tft.fillScreen(LTDC_BLACK);
|
||||
|
|
|
@ -49,7 +49,7 @@ void setup()
|
|||
{
|
||||
// The buffer is memory mapped
|
||||
// You can directly draw on the display by writing to the buffer
|
||||
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
uint16_t *buffer = (uint16_t *)malloc(2*LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
|
||||
tft.begin((uint16_t *)buffer);
|
||||
tft.fillScreen( LTDC_BLACK );
|
||||
|
|
|
@ -28,7 +28,7 @@ void setup()
|
|||
{
|
||||
// The buffer is memory mapped
|
||||
// You can directly draw on the display by writing to the buffer
|
||||
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
uint16_t *buffer = (uint16_t *)malloc(2*LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
|
||||
tft.begin((uint16_t *)buffer);
|
||||
tft.fillScreen( LTDC_BLACK );
|
||||
|
|
|
@ -28,7 +28,7 @@ void setup()
|
|||
{
|
||||
// The buffer is memory mapped
|
||||
// You can directly draw on the display by writing to the buffer
|
||||
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
uint16_t *buffer = (uint16_t *)malloc(2*LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
|
||||
tft.begin((uint16_t *)buffer);
|
||||
tft.fillScreen(LTDC_BLACK);
|
||||
|
|
|
@ -44,7 +44,7 @@ void setup()
|
|||
|
||||
// The buffer is memory mapped
|
||||
// You can directly draw on the display by writing to the buffer
|
||||
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
uint16_t *buffer = (uint16_t *)malloc(2*LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
|
||||
tft.begin((uint16_t *)buffer);
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ void setup()
|
|||
{
|
||||
// The buffer is memory mapped
|
||||
// You can directly draw on the display by writing to the buffer
|
||||
uint16_t *buffer = (uint16_t *)malloc(LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
uint16_t *buffer = (uint16_t *)malloc(2*LTDC_F746_ROKOTECH.width * LTDC_F746_ROKOTECH.height);
|
||||
|
||||
tft.begin((uint16_t *)buffer);
|
||||
tft.fillScreen( LTDC_BLACK );
|
||||
|
|
Loading…
Reference in New Issue