Datasheet

AT+HWGPIOMODE
This will set the mode for the specified GPIO pin (input, output, etc.).
Codebase Revision: 0.3.0
Parameters: This command one or two values (comma-separated in the case of two
parameters being used):
The pin number
The new GPIO mode, where:
0 = Input
1 = Output
2 = Input with pullup enabled
3 = Input with pulldown enabled
Output: If a single parameters is passed (the GPIO pin number) the current pin mode will be
returned.
# Set pin 14 HIGH
AT+HWGPIO=14,1
OK
# Set pin 14 LOW
AT+HWGPIO=14,0
OK
# Read the current state of pin 14
AT+HWGPIO=14
0
OK
# Try to update a pin that is not set as an output
AT+HWGPIOMODE=14,0
OK
AT+HWGPIO=14,1
ERROR
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.
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-bluefruit-le Page 128 of 238