Backlight level

Ja, som det kan ses af nedenstående, så skriver jeg nogle gange på Engelsk.
Teksten til højre for // er en kort beskrivelse af hvad hver linje gør.

/*
 * Test of 4X20 Char Serial LCD Display.
 *
 * Clearing the Display and setting the brightness level.
 * Test of all four Backlight brightness levels
 */

void setup()  // Run once, when the sketch starts
{
  Serial.begin(9600);  // Setting communication up at 9600 bps on TX pin at Arduino Uno

  Serial.write(0xFE);  // Special Command Extended
  Serial.write(0x01);  // Clear Display
  delay(10);  // Delay for clearing the Display
}

void loop()  // Run over and over again
{
  Serial.write(0xFE);  // Special Command Extended
  Serial.write(0x01);  // Clear Display
  Serial.write(0x7C);  // Special Command
  Serial.write(157);  // Backlight brightness level (128 = Off, 140 = 40%, 150 = 73%, 157 = Fully On)
  delay(50);  // Delay for changing Backlight brightness
  Serial.print("Backlight level 100%");
  delay(2500); // Time for Display read out

  Serial.write(0xFE);  // Special Command Extended
  Serial.write(0x01);  // Clear Display
  Serial.write(0x7C);  // Special Command
  Serial.write(150);  // Backlight brightness level (128 = Off, 140 = 40%, 150 = 73%, 157 = Fully On)
  delay(50);  // Delay for changing Backlight brightness
  Serial.print("Backlight level 73%");
  delay(2500); // Time for Display read out

  Serial.write(0xFE);  // Special Command Extended
  Serial.write(0x01);  // Clear Display
  Serial.write(0x7C);  // Special Command
  Serial.write(140);  // Backlight brightness level (128 = Off, 140 = 40%, 150 = 73%, 157 = Fully On)
  delay(50);  // Delay for changing Backlight brightness
  Serial.print("Backlight level 40%");
  delay(2500); // Time for Display read out

  Serial.write(0xFE);  // Special Command Extended
  Serial.write(0x01);  // Clear Display
  Serial.write(0x7C);  // Special Command
  Serial.write(128);  // Backlight brightness level (128 = Off, 140 = 40%, 150 = 73%, 157 = Fully On)
  delay(50);  // Delay for changing Backlight brightness
  Serial.print("Backlight level OFF");
  delay(2500); // Time for Display read out
}