Six untouchable pitfalls of BigDecimal BigDecimal is a class in Java for handling arbitrary precision decimal numbers. Unlike the basic data types double and float, the BigDecimal class can retain any number of decimal places and supports high-precision mathematical operations. However, since BigDecimal handles very large numbers, you need to pay attention to some things […]
Tag: touch
TouchGFX backend communication
In most applications, the UI needs to be connected to the rest of the system in some way and send and receive data. It may interact with hardware peripherals (sensor data, analog-to-digital conversion, serial communications, etc.) or other software modules. Model class? All TouchGFX applications have a Model class. In addition to storing UI state […]
RK3288 android7.1 modify dual-screen different touch usb tp touch direction
1. Problem description: The Android machine requires two screens (lvds + mipi) and two usb tp to achieve dual screens and different touch. Because the direction of mipi and the direction of lvds are changed to the same. The directions of the two USB TPs should also have the same effect when displayed differently. At […]
On-point atomic touch screen driver transplantation, no 24c02 is replaced by flash (w25q16)
Recently, I transplanted the atomic touch screen driver to a new board, but the board does not come with 24c02. The screen needs to be recalibrated every time it is run. It just so happens that the board comes with a w25q16, which is used to store calibration data instead. After transplanting the screen driver […]
TouchGFX Guide (2)
Foreword In the previous article, we have implemented basic screen display and can use TOUCHGFX to display basic color blocks. In this article we will improve our functions based on the previous article: 1. Add touch function 2. Save the resources in the external storage medium QSPI FLASH W25Q128 3. Make a template Add touch […]
(Android java) OnTouch() in view View calls back data to other interfaces
First, we need to add an interface to BottomRockerFragment to recall the position and angle information of the joystick. Please add the following code to BottomRockerFragment: public interface OnDataChangedListener { void onDataChanged(float leftAngle, float leftX, float leftY, float rightAngle, float rightX, float rightY); } Then, we need to declare a variable of type OnDataChangedListener in […]
Appium2.0+ new single-touch and multi-touch solutions
Before appium2.0, touch screen operations on mobile devices, single-finger touch screens and multi-finger touch screens were implemented by the TouchAction class and the Multiaction class respectively. After appium2.0, these two methods will be abandoned. “[Deprecated] ‘TouchAction’ action is deprecated. Please use W3C actions instead.” 1. What is w3c action? In w3c’s actions, input sources are […]
Front-end skin change solution – element+less touchless skin change (no page refresh required)
Front-end skinning solution – element + less touchless skinning (no page refresh required) Foreword Not long ago, when revamping a project that had been iterated for more than a year, a skin-changing function was added. Through my own exploration, I have summarized a set of more suitable transformation plans for your reference. If you have […]
TQ2440 touch screen driver transplantation based on device tree
Platform Development board: tq2440 Kernel: Linux-4.9 u-boot:u-boot-2015.04 Overview The LCD driver has been transplanted before. Next, we will continue to transplant the touch screen driver, and then transplant tslib as well. Text 1. Transplant the touch screen driver For the sake of simplicity, we rewrite the touch screen driver that comes with TQ2440 and change […]
Touch command usage guide: Create, update and modify file timestamps
Article directory Tutorial: Guide to using the touch command 1. Introduction 1.1 What is the touch command? 1.2 The function of touch command 1.3 Syntax of touch command 2. Basic usage 2.1 Create new files 2.2 Update file timestamp 2.3 Create multiple files 2.4 Modify file access time 2.5 Modify file modification time 2.6 Modify […]