8 years, 7 months ago.

how to set calibration manuel

Hello, i want to set the calibration of the touch manuel, because i want not to show the calibration screen on any startup.

Is there a way to do this with this libary?

Question relating to:

Graphical demo for the LPC4088 Experiment Base Board with one of the Display Expansion Kits. This program displays how to use the emWin library from Segger. emwin, LPC4088, LPC4088QSB

1 Answer

8 years, 7 months ago.

For this project and hardware the AR1021 touch controller is used so if you have done calibration once you probably don't have to do it again. You can try to just remove the call to calibrate on row 58 in main.cpp.

In general you need to learn how to follow an execution path. By doing this you would probably understand what is happening yourself and could do necessary modifications.

  • Look at row 58 in main.cpp. Here you have a call to calibrate.
  • On row 152 in EwGuiImpl.cpp you have the calibrate function.
  • On row 106 in EwGuiImpl.cpp you see that AR1021I2C is instantiated.
  • Looking at AR1021I2C.cpp you can understand how calibration works for the AR1021 driver. You might also need to have a look at the datasheet to get full understanding of the controller.