For some time did not continue, these days have been tossing bpi-r1 and D1, temporarily stopped a bit. But should continue to write, do not write I can not remember.
Originally this is intended as a summary, the result is to try to get the temperature, so insert a temperature acquisition class, the next one as a temporary end of it.
before you use it, first https://github.com/tjCFeng/ClassA20 Download the ClassA20 class library.
This time to say is the temperature of the class, call the method is very simple, a word is enough, directly write out the following article will not be able to write, or first look at the definition of the class
The same is the two class, but the first is the definition of the Touchpanel class register, and the temperature is obtained by the Register of TP to operate. Here, the TTP class is used entirely as the definition of a register, and if you want to complete other functions such as touch-screen events, you can inherit or reference this class to implement.
Ttemperature is a singleton class, which is a function extended by reference to the TTP class in which the values of each register are set at initialization time and are called directly
TTemperature.Instance.Temperature the value obtained is the current A20 chip temperature, in degrees Celsius
Use of the 10.Temperature class "Allwinner ClassA20 class Library Analysis"