Skip to content

Instantly share code, notes, and snippets.

@Marzogh
Last active March 21, 2021 08:14
Show Gist options
  • Save Marzogh/6280785aaa01ced4587ca7ad278d8b71 to your computer and use it in GitHub Desktop.
Save Marzogh/6280785aaa01ced4587ca7ad278d8b71 to your computer and use it in GitHub Desktop.
Color codes for TFT screens with software to convert 24 bit color codes to 16bit one and viceversa

Color codes for TFT screens with software to convert 24 bit color codes to 16bit one and viceversa

// Colors found in old fashioned terminals (with Phosphors)
#define TERMINALGREEN1 0x37E0 // rgb(51,255,0) 524nm
#define TERMINALGREEN2 0x07E6 // rgb(0,255,51) 506nm
#define TERMINALGREEN3 0x07EC // rgb(0,255,102) 502nm
#define TERMINALAPPLEII 0x37E6 // rgb(51,255,51) (P1)
#define TERMINALAPPLEIIC 0x67EC // rgb(102,255,102) (P24)
#define TERMINALAMBER 0xFD60 // rgb(255,176,0) 600nm (P3)
#define TERMINALLTAMBER 0xFE40 // rgb(255,204,0) 593nm
#define TERMINALGRAY 0x2945 // rgb(40,40,40)
// Colors found in old fashioned terminals (with Phosphors)
#define TERMINALGREEN1 0x33FF00 // rgb(51,255,0) 524nm
#define TERMINALGREEN2 0x00FF33 // rgb(0,255,51) 506nm
#define TERMINALGREEN3 0x00FF66 // rgb(0,255,102) 502nm
#define TERMINALAPPLEII 0x33FF33 // rgb(51,255,51) (P1)
#define TERMINALAPPLEIIC 0x66FF66 // rgb(102,255,102) (P24)
#define TERMINALAMBER 0xFFB000 0xFD60 // rgb(255,176,0) 600nm (P3)
#define TERMINALLTAMBER 0xFFCC00 // rgb(255,204,0) 593nm
#define TERMINALGRAY 0x282828 // rgb(40,40,40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment