Skip to content

readpixel and drawpixel.. diferent colours #951

Answered by Bodmer
eb4cuv asked this question in Q&A - General
Discussion options

You must be logged in to vote

The read frequency is too high, this cause "bit smearing" where a single 1 bit becomes 2. Change it back to the default 16MHz. Note that the data sheet limit is 6.7MHz for read frequency and 20MHz for write frequency. Displays typically can be overclocked, but 16MHz is likely to be the limit for ILI9488 reads.

Here is a simple walking 1 test, to test for read errors, run it, then reduce the frequency to 16MHz and it should run without error.

#include <TFT_eSPI.h> // Hardware-specific library
#include <SPI.h>

#define TDELAY 0

TFT_eSPI tft = TFT_eSPI(); 

void setup() {
  Serial.begin(115200);

  tft.init();
  tft.fillScreen(TFT_BLACK);
}

void loop() {
  static uint32_t wr = 1;
  static …

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Bodmer
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants