 
 namespace Adafruit {
   // https://learn.adafruit.com/character-lcds/rgb-backlit-lcds
-  void setBacklight(uint8_t r, uint8_t g, uint8_t b) {
+  void setBacklight(uint8_t r, uint8_t g, uint8_t b, uint8_t photoTransistorValue) {
     // normalize the red LED - it's brighter than the rest!
+#warning deleteme
+  /* old code
     r = map(r, 0, 255, 0, 100);
     g = map(g, 0, 255, 0, 150);
     b = map(b, 0, 255, 0, 220); // this makes the blue less "deep" so the text is legible
- 
+  */
     // brightness = 255 ; 
+    
+    byte brightnessOffset = 32 * photoTransistorValue; // 0, 1, 2, 3
+    brightness = brightness - brightnessOffset;   // ex 192 - 32*2
+    
     r = map(r, 0, 255, 0, brightness);
     g = map(g, 0, 255, 0, brightness);
     b = map(b, 0, 255, 0, brightness);


*/

#define JEMMA_VERSION "Jemma Clock v1.1"
#define JEMMA_COPYRIGHT "(c)Patrick Tudor"
#define DEBUG 0

#ifndef _HEADERS_JEMMA
#define _HEADERS_JEMMA

  brightness = readBrightness();
  if ( lastBrightness != brightness) {
    // we're using the setBacklightFunction to refresh the brightness as it changes.
    Adafruit::setBacklight(255, 0, 0, 0);
  }

  // read the current time zone from the pot
