while true;do adb shell cat /sys/class/misc/mtgpio/pin |grep -E 65;done
while true;do adb shell cat /sys/devices/platform/1000b000.pinctrl/mt_gpio |grep -E 65;done
本文展示如何使用ADB命令在Android设备上实时读取GPIO(通用输入输出)的状态,通过两个无限循环,分别从/sys/class/misc/mtgpio/pin和/sys/devices/platform/1000b000.pinctrl/mt_gpio目录下读取并筛选出包含65的GPIO信息。
while true;do adb shell cat /sys/class/misc/mtgpio/pin |grep -E 65;done
while true;do adb shell cat /sys/devices/platform/1000b000.pinctrl/mt_gpio |grep -E 65;done

被折叠的 条评论
为什么被折叠?