Ligne 101 : |
Ligne 101 : |
| AT+HWGPIO=14,1 | | AT+HWGPIO=14,1 |
| ERROR</nowiki> | | ERROR</nowiki> |
− |
| |
− | == AT+HWGPIOMODE ==
| |
− | This will set the mode for the specified GPIO pin (input, output, etc.).
| |
− |
| |
− | * Codebase Revision: 0.3.0
| |
− | * Paramètres: This command one or two values (comma-separated in the case of two Paramètres being used):
| |
− | ** The pin number
| |
− | ** The new GPIO mode, where:
| |
− | *** 0 = Input
| |
− | *** 1 = Output
| |
− | *** 2 = Input with pullup enabled
| |
− | *** 3 = Input with pulldown enabled
| |
− | * Sortie: If a single Paramètres is passed (the GPIO pin number) the current pin mode will be returned.
| |
− |
| |
− | {{ambox-stop|text=Some pins are reserved for specific functions on Bluefruit modules and can not be used as GPIO. If you try to make use of a reserved pin number an 'ERROR' response will be generated. }}
| |
− |
| |
− | <nowiki># Configure pin 14 as an output
| |
− | AT+HWGPIOMODE=14,0
| |
− | OK
| |
− |
| |
− | # Get the current mode for pin 14
| |
− | AT+HWPGIOMODE=14
| |
− | 0
| |
− | OK</nowiki>
| |
| | | |
| == AT+HWI2CSCAN == | | == AT+HWI2CSCAN == |