I am working on an Arduino powered TFT display device that attractively displays input and return temperatures in my central heating / floor heating system.
On Instructables.com I found an analog 'ring' meter contribution dated March 17, 2015 by Bodmer that beautifully display values in a certain range with circle like "ring' meters.
(https://www.instructables.com/id/Arduino-analogue-ring-meter-on-colour-TFT-display/). The ring_meter.zip contains a sketch which carries on line 17 the name 'Alan Senior' and the date 18/3/2015
This sketch did not work immediately with my ILI9481 TFT screen (blank!), but I managed to get a working screen with nice results using David Prentices' <MCUFRIEND.kbv>> I also copied instructions from a working sketch I found somewhere carrying the name "Danny van den Brands"
The core subroutines that create the brilliant, visual rainbow 'ring' representation of the data are:
/ #########################################################################
// Draw the meter on the screen, returns x coord of righthand side
// #########################################################################
int ringMeter(int value, int vmin, int vmax, int x, int y, int r, char *units, byte scheme)
{
// Minimum value of r is about 52 before value text intrudes on ring
// drawing the text first is an option
... etc and:
// #########################################################################
// Return a 16 bit rainbow colour
// #########################################################################
unsigned int rainbow(byte value){
// Value is expected to be in range 0-127
// The value is converted to a spectrum colour from 0 = blue through to 127 = red
byte red = 0; // Red is the top 5 bits of a 16 bit colour value
...
My question is: does anybody on this forum know the name or pseudonym of the creator of these subroutines? In my final sketch I want to credit thos e who deserve credit - and the one who has programmed these great routines certainly deserves it in my eyes!