If you have wrong display orientation or different matrix module type then try changing the code with one of these module types GENERIC_HW/FC16_HW/PAROLA_HW/ICSTATION_HW.