<commit_before>require 'lcd/char16x2'

class TimerUI
  class Screen
    def initialize
      @lcd = Adafruit::LCD::Char16x2.new
      @lcd.backlight(Adafruit::LCD::Char16x2::RED)
      @lcd.clear
    end
    
    def home
      @lcd.home
    end
    
    def clear
      @lcd.clear
    end
    
    def write(text)
      @lcd.message text
    end
    
    def background_colour(colour)
      colour_code = case(colour)
        when :black
          Adafruit::LCD::Char16x2::OFF
        when :red
          Adafruit::LCD::Char16x2::RED
        when :white
          Adafruit::LCD::Char16x2::WHITE
        else
          Adafruit::LCD::Char16x2::OFF
      end
    end
  end
end<commit_msg>Fixed bug in background colour handling.<commit_after>require 'lcd/char16x2'

class TimerUI
  class Screen
    def initialize
      @lcd = Adafruit::LCD::Char16x2.new
      @lcd.backlight(Adafruit::LCD::Char16x2::RED)
      @lcd.clear
    end
    
    def home
      @lcd.home
    end
    
    def clear
      @lcd.clear
    end
    
    def write(text)
      @lcd.message text
    end
    
    def background_colour(colour)
      colour_code = case(colour)
        when :black
          Adafruit::LCD::Char16x2::OFF
        when :red
          Adafruit::LCD::Char16x2::RED
        when :white
          Adafruit::LCD::Char16x2::WHITE
        else
          Adafruit::LCD::Char16x2::OFF
      end
      @lcd.backlight colour_code
    end
  end
end
{'fraction_non_alphanumeric': 0.09274755927475593, 'fraction_numerical': 0.029288702928870293, 'mean_word_length': 1.9166666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7273234', 'n_tokens_mistral': 543, 'n_tokens_neox': 496, 'n_words': 96}