This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Andrew Fisher | |
# Version: 0.1 | |
# Date: 30/05/2012 | |
# Licence: BSD | |
# This python converts an rgb value expressed in 8 bit values (eg 255, 128, 0) and returns a hex value that | |
# has been converted to 565 format. This was highly useful when I was playing with some Arduino | |
# stuff requiring 16 bit LCD designs and couldn't remember the hex layout. | |
def rgb_hex565(red, green, blue): |