Datasheet

AT+HWGETDIETEMP
32.25
OK
AT+HWGPIO
Gets or sets the value of the specified GPIO pin (depending on the pin's mode).
Codebase Revision: 0.3.0
Parameters: The parameters for this command change depending on the pin mode.
OUTPUT MODE: The following comma-separated parameters can be used when updating a pin that is set as an output:
Pin numbers
Pin state, where:
0 = clear the pin (logic low/GND)
1 = set the pin (logic high/VCC)
INPUT MODE: To read the current state of an input pin or a pin that has been configured as an output, enter the pin number as a single
parameter.
Output: The pin state if you are reading an input or checking the state of an input pin (meaning only 1 parameter is supplied, the pin number),
where:
0 means the pin is logic low/GND
1 means the pin is logic high/VCC
Trying to set the value of a pin that has not been configured as an output will produce an 'ERROR' response.
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.
# 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
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.
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.
# Configure pin 14 as an output
AT+HWGPIOMODE=14,0
© Adafruit Industries
https://learn.adafruit.com/introducing-the-adafruit-bluefruit-le-uart-
friend
Page 67 of 115