This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
at_spi_write('AT+CWMODE=1\r\n', 13, 500) | |
at_spi_read ('OK\r\n', 4, 500) | |
at_spi_write('AT+CWMODE?\r\n', 12, 500) | |
at_spi_read ('+CWMODE:1\r\nOK\r\n', 15, 500) | |
at_spi_write('AT+CWQAP\r\n', 10, 500) | |
at_spi_read ('OK\r\n', 4, 500) | |
at_spi_write('AT+CWMODE?\r\n', 12, 500) | |
at_spi_read ('+CWMODE:1\r\nOK\r\n', 15, 500) | |
at_spi_write('AT+CWQAP\r\n', 10, 500) | |
at_spi_read ('OK\r\n', 4, 500) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python driver for the AXP192 Power Management IC. | |
# | |
# https://gist.github.com/ropg/7216ba90a9d7697114d4ba8aea7bee3c | |
# | |
# Written in 2021 by Rop Gonggrijp. | |
# | |
# Some functionality inspired by C driver written by Mika Tuupola | |
# (https://github.com/tuupola/axp192) and a fork of that maintained by | |
# Brian Starkey (https://github.com/usedbytes/axp192) | |
# |