I'm using the DFRobot LCD Keypad Shield. Pin 10 controls backlight brightness via analogWrite()
I was using MsTimer2 but it doesn't work on the Mega 2560, so I've switched to FlexiTimer2 (latest version, not the one on the playground) which does work on the Mega 2560.
Problem.. analogWrite() on pin 10 doesn't work! any value other than 255 results in minimum brightness.
This Mega 2560 is not a "real" Arduino (it's made in China and came from ebay) so I'm not sure if this misbehavior is due to the China thing, or there really is some interaction between PWM on the Mega 2560 and FlexiTimer2..
The exact same code works fine (and controls the LCD brightness properly) on a (real) Arduino Uno.
But I believe that you can still get on/off control of the backlight on pin 10.
You just won't be able to dim with PWM and use Timer2 with mstimer2/flexitimer2 at the same time.
The 2560 has more timers and the library could be altered to use another/different timer
but that would be more work than just limiting the backlight control to on/off.