0

Clue Display BMPs Color Issue
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Clue Display BMPs Color Issue

by dromero on Sun Aug 02, 2020 3:59 pm

I first noticed the color issues when setting up the Flower Care Bot. Here is what I see vs the image from the documentation:

IMG_20200802_144435264.jpg
My Display Dry
IMG_20200802_144435264.jpg (789.42 KiB) Viewed 172 times
sensors_plant-1321.jpg
Adafruit Example Dry
sensors_plant-1321.jpg (53.04 KiB) Viewed 172 times


I looked through this post https://forums.adafruit.com/viewtopic.php?f=19&t=163189. It seems to be the same issue I have been dealing with. Both the CLUE-TEST.UF2 and clue_color_test.UF2 worked. So I decided to play around with drawing rectangles with different rgb fills. What I noticed is basic colors like white, black, red, green, blue, yellow, cyan and magenta work. However other colors from the example code don't. Color values 0x00FF22 and 0xFFAA88 come out as cyan and white respectively. I'm assuming something similar is happening to some of the colors in the bitmap.

dromero
 
Posts: 3
Joined: Wed Feb 25, 2015 11:23 pm

Re: Clue Display BMPs Color Issue

by adafruit_support_carter on Mon Aug 03, 2020 3:09 pm

Both the CLUE-TEST.UF2 and clue_color_test.UF2 worked.

Just to be sure - this is still true? Issue is only with the other code you are trying?

adafruit_support_carter
 
Posts: 20348
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clue Display BMPs Color Issue

by dromero on Mon Aug 03, 2020 3:50 pm

I'm still having this issue with any code that uses colors where the red, green or blue channels are not fully on or off. Red (0xFF0000) or Cyan (0x00FFFF) work. So the color test work.

But colors like brown in the bitmap file from the Plant Care Robot don't.
ARCADA_PINK and ARCADA_GREENYELLOW in the plotter demo that came preloaded come out as white.
Similarly the text "CLUE Plant" is suppose to be 0x00FF22 but looks like cyan.

dromero
 
Posts: 3
Joined: Wed Feb 25, 2015 11:23 pm

Re: Clue Display BMPs Color Issue

by adafruit_support_carter on Tue Aug 04, 2020 12:40 pm

Arcada uses 16-bit color definitions. So if you are trying to use 24 bit hex literals, like 0xFF0000, then it won't work as expected. For example, here is what red is defined as:
Code: Select all | TOGGLE FULL SIZE
#define ARCADA_RED 0xF800         ///< 255,   0,   0


But you also mention getting unexpected colors using the built in defines, like ARCADA_PINK. Try running this test sketch and post a photo of your results.
Code: Select all | TOGGLE FULL SIZE
#include "Adafruit_Arcada.h"
Adafruit_Arcada arcada;

void setup(void) {
  Serial.begin(9600);
  Serial.print("Hello! Arcada TFT Test");

  // Start TFT and fill black
  if (!arcada.arcadaBegin()) {
    Serial.print("Failed to begin");
    while (1) delay(10);
  }
  arcada.displayBegin();
 
  // Turn on backlight
  arcada.setBacklight(255);

  // Draw rectangles
  arcada.display->fillRect(  0,  0, 80, 80, ARCADA_RED);
  arcada.display->fillRect( 80,  0, 80, 80, ARCADA_GREEN);
  arcada.display->fillRect(160,  0, 80, 80, ARCADA_BLUE);

  arcada.display->fillRect(  0, 80, 80, 80, ARCADA_PINK);
  arcada.display->fillRect( 80, 80, 80, 80, ARCADA_GREENYELLOW);
  arcada.display->fillRect(160, 80, 80, 80, ARCADA_MAGENTA);
}

void loop() {
}

adafruit_support_carter
 
Posts: 20348
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clue Display BMPs Color Issue

by MickTheGeek3 on Thu Aug 06, 2020 2:51 am

Hey. I'd like to report that I'm having the same/similar issue with the Adafruit Clue colors. I have run the custom badge circuitpython code that is in the Adabox 015 learn guide and the pybadger.BLINKA_PURPLE and pybadger.BLINKA_PINK colors do not display. They seem to display as white. I have tried a couple other colors in the pybadger lib and have gotten the same results, like pybadger.PINK. I have run the above Arduino sketch you asked the original poster to run, and the PINK and GREENYELLOW colors display as white. Sorry I was not able to capture a photo of the Clue's display to post. I hope this info helps to resolve this issue. If you need anymore information, please let me know.
/Mike

MickTheGeek3
 
Posts: 1
Joined: Thu Jun 22, 2017 5:14 am

Re: Clue Display BMPs Color Issue

by adafruit_support_carter on Thu Aug 06, 2020 10:57 am

@MickTheGeek3 Please start a new thread for your issue.

adafruit_support_carter
 
Posts: 20348
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clue Display BMPs Color Issue

by unawoo on Thu Aug 06, 2020 9:07 pm

I too have the problem, bitmaps colours are not mapping correctly it seems.
i tried both uf2's and libraries with the same results so i tough maybe hardware, i unplugged the screen and back, no go.
hope someone figures this one out.

unawoo
 
Posts: 102
Joined: Thu Apr 14, 2016 9:39 pm

Re: Clue Display BMPs Color Issue

by adafruit_support_carter on Thu Aug 06, 2020 9:09 pm

@unawoo Please also start a new thread for your issue.

adafruit_support_carter
 
Posts: 20348
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clue Display BMPs Color Issue

by kevinjwalters on Fri Aug 07, 2020 9:23 am

Does this display have any registers that aren't initialised, perhaps the defaults are different on some of these screens? Is there any NV ram storing gamma/brightness/bit depth stuff that's relied upon? Looking back at viewtopic.php?f=19&t=163189&start=15#p807894 that one looks like it displays only a few levels per channel with them almost immediately clipping as the max value.

kevinjwalters
 
Posts: 960
Joined: Sun Oct 01, 2017 3:15 pm

Re: Clue Display BMPs Color Issue

by adafruit_support_carter on Fri Aug 07, 2020 11:18 am

Maybe, but at this point unknown. Starting new threads for @unawoo and @MickTheGeek3 will allow us to get specifics on what is happening in those cases.

For @dromero, the display hardware seems to work:
Both the CLUE-TEST.UF2 and clue_color_test.UF2 worked.


So it may just be software related, like using incorrect values for color with Arcada:
Color values 0x00FF22 and 0xFFAA88 come out as cyan and white


Still waiting to here back from @dromero

adafruit_support_carter
 
Posts: 20348
Joined: Tue Nov 29, 2016 2:45 pm

Re: Clue Display BMPs Color Issue

by kevinjwalters on Sun Aug 09, 2020 8:53 am

I've not used this but Arcada looks like it encompasses the NeoPixel library which uses 8bits per channel and the GFX library which uses 5-6-5?

I'm surprised the compiler doesn't spit a warning for the colour values which don't fit in but perhaps the Arduino IDE is just hiding or obscuring that as it scrolls.

Are there macros to convert to 5-6-5? That would be useful and if shown in examples would reduce the chance of confusion in this space.

kevinjwalters
 
Posts: 960
Joined: Sun Oct 01, 2017 3:15 pm

Re: Clue Display BMPs Color Issue

by adafruit_support_carter on Tue Aug 18, 2020 7:10 pm

@dromero Here is a new and different color test to run. Please try this out on your CLUE and post the results you are getting.
CLUE_COLOR_RECT.UF2
(165.5 KiB) Downloaded 8 times

adafruit_support_carter
 
Posts: 20348
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.