breed> help Available commands: about - About this bootloader abstatus - Interrupt status of autoboot arp - Display ARP table autoboot - Detect firmware type and boot automatically boot - Boot firmware btntst - Test GPIO of buttons dhcp - Display DHCP leases env - Environment variables utility envconf - Configure environment variable block exit - Exit from telnet flash - Flash utility gpio - GPIO utilities help - Show available commands jtagd - JTAG dongle over GPIO mdio - MDIO utility mem - Memory operation utilities net - Network control netstat - Display network state reset - Restart device setbrg - Set baudrate spi - SPI utility sysinfo - Display system information thread - Display all threads wget - Retrieval file through HTTP
breed> gpio ? Usage: gpio help - show this help gpio status/list - show status of all GPIOs gpio button - show status of all GPIO buttons gpio led - show status of all GPIO LEDs gpio get <n> - show status of GPIO <n> gpio set <n> <hi|lo> - set status of GPIO <n> gpio dir set <n> <in|out> - set direction of GPIO <n> gpio led set <name> <on|off> - set status of GPIO LED <name>
通过 btntst 测试按键
1 2 3 4 5
breed> btntst Press Ctrl+C to stop.
GPIO#18 (<gpio0,18>) changed to 0 GPIO#18 (<gpio0,18>) changed to 1