Serial Enabled 16x2 LCD - White on Black 3.3V
sku: LCD-09067
Arduino MEGA 2560 R3
I am quite new at this, but been reading and searching quite a bit to avoid asking frivolous questions, but I need some advice.
I have this display working using this code:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10); // mySerial(rx, tx);
void setup()
{
mySerial.begin(9600);
}
void loop()
{
mySerial.print(" Hello dave");
delay(2000);
mySerial.write(0xFE);
mySerial.write(0x01);
mySerial.print(" Got the serial");
delay(2000);
mySerial.write(0xFE);
mySerial.write(0x01);
mySerial.print(" working ");
delay(2000);
mySerial.write(0xFE);
mySerial.write(0x01);
delay(2000);
}
And I find this in the files associated with the serial controller for the LCD:
brightness_setting = letter & 0b.0001.1111; //Brightness is a value from 0-29 only (5-bit)
onboard_eewrite(brightness_setting, LCD_BRIGHTNESS_SETTING); //Record to EEPROM
along with Quite a few other similar lines pertaining to brightness controll.
according to the spark fun spec sheet on the 16f688, it requires a command :
by sending special command character 0x7C (decimal 124) followed by a number 128-157, the backlight PWM will be set.
So, my question is what does that look like on the scetch pad? I have tries several combinations of these commands and "|" characters follower by numbers and nothing works. I think i am missunderstanding the spec sheets due to my lack of knowlage so advice would be greatly apriciated!
Thanks