Use of the 10.Temperature class "Allwinner ClassA20 class Library Analysis"

Source: Internet
Author: User
Tags in degrees

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.