electronics

The Great Escape

A caterpillar climbing on some wires in my amplifier circuit

I definitely have a bug in my circuit.

Arbitrary colors for the Adafruit 1.8" TFT display

I love Adafruit. I especially love their little 1.8 inch TFT screen that you can hook up directly to an Arduino. It comes with a library, but one thing the library is missing is a method for generating arbitrary colors. The colors are in an odd packed 16 bit binary format, with 5 bits for red, 6 bits for green, and 5 bits for blue. They give you a few color constants to start out with, but I wanted arbitrary colors.

Subscribe to RSS - electronics
© 2013 John Wilson. Drupal theme by Kiwi Themes.