ColorPtr and AN004 [Getting Started with VGA ... ]
atexit8
Posts: 13
ColorPtr A pointer to up to 64 words that define the foreground and background colors for each text row. The lower byte of each word contains the foreground RGB color for that row, while the upper byte contains the background RGB color for that row. The RGB data in each byte is in 2-bits-per-channel format in the following order:
%RRGGBB00 = RGB [2:2:2:0], where the lower 2 bits are always 0.
Each color has 4 possible intensity levels, so there are 4*4*4=64 possible colors for each rows foreground and background color. For example, the color word %%0020_3300 would be yellow on blue.
Can someone explain how %%0020_3300 equates to yellow on blue?
Also what does the %% mean?
Comments
-Phil
How does a blue of 2 appear to the human eye versus blue of 1 or 3?
-Phil
After getting to page 5, I realized that I would need a Propeller development board which probably is not the same as my Propeller QuickStart board.
Not really, you can add the resistors required for video to the board or as part of the cable. For short cables you can use twisted pairs with a signal and ground per pair for each signal. For a while I had a protoboard attached to the back of a monitor using such a cable and it worked fine.
http://www.parallax.com/product/40003
http://www.parallax.com/product/28076
http://www.parallax.com/product/28075
Or you could build the circuit yourself using the circuit in the lower right corner. The LEDs are not necessary, only the resistor circuits to the DB15 connector.
http://www.parallax.com/downloads/propeller-demo-board-schematic