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.
/* * Extended LCD Commands. */ 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(0x7C); // Special Command Serial.write(0x03); // LCD Type 20 Characters Wide delay(10); // Delay for clearing the Display Serial.write(0x7C); // Special Command Serial.write(0x05); // LCD Type 4 Lines delay(10); // Delay for clearing the Display Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display delay(10); // Delay for clearing the Display Serial.write(0x7C); // Special Command Serial.write(150); // Backlight brightness level (128 = Off, 140 = 40%, 150 = 73%, 157 = Fully On) delay(10); // Delay for changing Backlight brightness } void loop() // Run over and over again { Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Underline cursor ON 0x0E"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x0E); // Underline cursor ON delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Underline cursor OFF 0x0C"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x0C); // Underline cursor OFF delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Blinking box cursor ON 0x0D"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x0D); // Blinking box cursor ON delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Set cursor position 0x80 + "); // Serial.write(0xFE); // Special Command Extended Serial.write(0x80+0x14); // Set cursor position 0x80 + delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Move cursor right one 0x14"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x14); // Move cursor right one delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Move cursor left one 0x10"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x10); // Move cursor left one delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Scroll right 0x1C"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x1C); // Scroll right delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Scroll left 0x18"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x18); // Scroll left delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Turn visual display OFF 0x08"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x08); // Turn visual display OFF delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Turn visual display ON 0x0C"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x0C); // Turn visual display ON delay(5000); // Time for Display read out Serial.write(0xFE); // Special Command Extended Serial.write(0x01); // Clear Display Serial.print("Blinking box cursor OFF 0x0C"); // Serial.write(0xFE); // Special Command Extended Serial.write(0x0C); // Blinking box cursor OFF delay(5000); // Time for Display read out }