Changes

Jump to: navigation, search

Orange Pi PC 2

1,619 bytes added, 11:05, 23 June 2022
no edit summary
| ctp_used=xx|| Whether turn on capacitance touch panel, if so set the value as 1, and vice verso 0.
|-
| ctp_name =xx|| Indicates the control scheme used in the specified scheme, for now there are: "ft5x_ts" or"Goodix-TS".
|-
| 示例 ctp_twi_id=xx|| 示例Used for selecting i2c adapter, there are 0 and 2.
|-
| 示例 ctp_twi_addr =xx|| 示例Indicates the device address of i2c, it is related to the specific hardware.
|-
| 示例 ctp_screen_max_x=xx|| 示例Maximum coordinates of the X axis of the touch panel
|-
| 示例 ctp_screen_max_y=xx|| 示例Maximum coordinates of the Y axis o the touch panel
|-
| 示例 ctp_revert_x_flag=xx|| 示例Whether needed to flip the X coordinates, if so then set 1, and vice verso 0.
|-
| 示例 ctp_revert_y_flag=xx|| 示例Whether needed to flip the Y coordinates, if so then set 1, and vice verso 0.
|-
| 示例 ctp_int_port=xx|| 示例GPIO configuration of the interrupt signal of capacitive touch panel
|-
| 示例 ctp_wakeup=xx|| 示例GPIO configuration of the wake-up signal of capacitive touch panel
|-
| 示例 ctp_io_port=xx|| 示例|-| 示例 || 示例Capacitive screen IO signal, currently share with interrupt signal common pin
|}
Configuration samples:<br><br>ctp_used = 1<br>ctp_name = "ft5x_ts"<br>ctp_twi_id = 2<br>ctp_twi_addr = 0x70 <br>ctp_screen_max_x = 800<br>ctp_screen_max_y = 480<br>ctp_revert_x_flag = 0<br>ctp_revert_y_flag = 0<br>ctp_int_port = port:PH21<6><default><br>ctp_wakeup = port:PB13<1><default><default><1><br>ctp_io_port = port:PH21<0><default><br><br>Note: If you want to support the new capacitive touch IC, you need to combine the configuration of the BSP A10 layer, which should be based on the original capacitive touch IC code, to make the appropriate changes. Specifically, 1) ctp_twi_id should be consistent with the hardware connection in sys_config; 2) In the drive part of the code: the use of twi from the device name + address should be consistent with the ctp_name and ctp_twi_addr in sys_config configuration. At the same time, the other sub configuration in sysconfig should also be properly configured, these configurations should be corresponding processing in the program.<br><br>
== '''Orange Pi Driver development''' ==
<br>
 In order to help developers become more familiar with Orange PiOrangePi, this instruction will make a brief illustration on manual describes how to use simple device driver module modules and application programapplications on the development board. <br>
<br>
Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1

Navigation menu