I am not able to successfully activate PA8 on the RAK3172 (pin 19) to be a GPIO digital output. I’ve searched thru the AT commands documentation and RAK3172 datasheet and tried various approaches by my DVM shows no ability to drive the Pin 19 HIGH or LOW on the RAK3172.
I am using a RAK3172 (AT+VER=RUI_4.1.0_RAK3172-E) on a custom PCBA .
Arduino preferences Additional boards manager URLs includes: • https://raw.githubusercontent.com/RAKWireless/RAKwireless-Arduino-BSP-Index/staging/RUI_4.1.1_266/package_rakwireless_com_rui_index.json
In the Arduino Board Manager I selected “WisDuo RAK3172 Evaluation Board”. Is this the problem, or what am I not understanding?
My Arduino program reads my sensors fine and transmit the LoRaWan data properly to my Chirpstack Gateway using RUI3 commands. Here is a simple test code snippet that demonstrates the failure to activate and control Pin 19.
/* Code snippet to test control of RAK3172 Pin 19, GPIO PA8 */
uint8_t ledUserBlue = 0x13; // Programmable LED to Pin 19 of RAK3172
#define OTAA_PERIOD (2*60*1000)
void setup() {
Serial.begin(115200, RAK_AT_MODE);
delay(2000);
pinMode(ledUserBlue, OUTPUT);
digitalWrite(ledUserBlue,HIGH);
delay(3000);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledUserBlue,HIGH);
delay(OTAA_PERIOD);
digitalWrite(ledUserBlue,LOW);
delay(10*1000);
}
Thanks in advance for guidance!