Closed
Description
Hello.
On a custom minima pcb, I'm trying to read P214 and P215 with this code:
#include <Arduino.h>
#define INPUT_PIN BSP_IO_PORT_02_PIN_15
void setup() {
R_IOPORT_PinCfg(NULL, INPUT_PIN, IOPORT_CFG_PORT_DIRECTION_INPUT);
Serial.begin(115200);
}
void loop() {
bsp_io_level_t ret;
R_IOPORT_PinRead(NULL, INPUT_PIN, &ret);
if(ret == BSP_IO_LEVEL_LOW) {
Serial.println("Pin LOW");
} else {
Serial.println("Pin HIGH");
}
delay(500);
}
But without success, ports state is only LOW, unable to read high level on these ports.
But when I try to read P204 for example, then I'm able to read different level state.
My question is, is the minima bootloader take into account these two port P214 and 215?