Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

CPX simulator ambient color value
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CPX simulator ambient color value

by Rick314 on Tue Jan 25, 2022 9:13 pm

Start with the following program:
MakeCode_CPX_ambient_color_1.png
MakeCode_CPX_ambient_color_1.png (66.84 KiB) Viewed 86 times

View the simulator console. As light intensity is varied using the upper-left control, the color changes:
MakeCode_CPX_ambient_color_2.png
MakeCode_CPX_ambient_color_2.png (4.83 KiB) Viewed 86 times

Eventually all 5 possible color values can be seen: 16711680 = 0xff0000 = red; 65280 = 0x00ff00 = green; 255 = 0x0000ff = blue; 16776960 = 0xffff00 = yellow; 16777215 = 0xffffff = white. But the color value seems to change randomly.
Is the color value really random, or is there some way to set it to each of the 5 possible values?

Rick314
 
Posts: 10
Joined: Wed Sep 22, 2021 6:00 pm

Re: CPX simulator ambient color value

by Rick314 on Thu Feb 03, 2022 1:47 pm

Rick314 wrote:Is the color value really random, or is there some way to set it to each of the 5 possible values?

https://www.adafruit.com/support points to these forums as the best way to get technical questions answered by Adafruit Support people. I understand these are busy times, but is there a better way to get questions like this one answered?

Rick314
 
Posts: 10
Joined: Wed Sep 22, 2021 6:00 pm

Re: CPX simulator ambient color value

by Rick314 on Fri Feb 18, 2022 12:11 pm

Is the CPX simulator ambient color value random, or is there some way to set it to each of the 5 possible values?

Details are at the top of this forum topic. Is there a better way than this forum to communicate with Adafruit support? I started this topic 3 weeks ago and still hope to receive an answer from them.

Rick314
 
Posts: 10
Joined: Wed Sep 22, 2021 6:00 pm

Re: CPX simulator ambient color value

by johnpark on Fri Feb 18, 2022 3:53 pm

This is a good question to ask on forum.makecode.com

johnpark
 
Posts: 939
Joined: Wed Mar 25, 2009 2:15 pm

Please be positive and constructive with your questions and comments.