Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GPIO

Overview

This example shows how to use the General Purpose Input/Output (GPIO) functionality of a module.

Description

The example is developed on the basis of standard firmware. The added code is in the comment range of /* User Code */, /* End User Code */

There are two modes of the module GPIO: Input and Output

Specific pins were configured to demonstrate the GPIO modes:

  1. GPIO is set to output, which causes the LED light connected to flicker on/off.

  2. GPIO is set to input, and pin status is set to print every 1 second interval. If the configured pin is connected to VCC, pin status is 1; when it is connected to GND, pin status is 0.

Notes:

Multiple GPIO pin states can be set simultaneously.
All supporting pins can be set to input or output at the same time.

RAK811 GPIO pins that can be modified:2,3,4,5,8,9,14,15,16,18,19,20,22,23

It is important that specific positions needs to be compared with the hardware schematics.

schematics.