set compile optimisation to O0
fixed init pin levels for display