i.mx6 Android Linux Shell MMPF0100 i²c Settings data

Source: Internet
Author: User

#!/system/bin/busybox ash## i.mx6 Android Linux Shell MMPF0100 i²c Settings Data # Description: # This article mainly records the data that is set MMPF0100 through the shell script. ##                                      .-4-6Shenzhen Nanshan Ping Shan village Zengjianfeng # # Check the number of parametersif[$#-lt3 ]; Then Echo"USAGE:"Echo"i2csetdata.sh <curPage> <address (hex) > <value (hex) >"Exit1fi# get parameter Curpage=$1Address= ' BusyBox printf"0x%x"$(($2) ) ' Value= ' BusyBox printf"0x%x"$(($3)) ' # Settings page./i2cset-f-y1 0x08 0x7F$curPage # Gets the value on the address data= './i2cget-f-y1 0x08$address ' echo"before data: $data"# Set the value on the address./i2cset-f-y1 0x08$address $value # Regain the value on the set address after data= './i2cget-f-y1 0x08$address ' echo"After data: $data"

i.mx6 Android Linux Shell MMPF0100 i²c Settings data

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.