Hi,
Ai-M61-32S Kit with Bouffalo BL618 provides RGB LED wired to IO12 (red), IO14 (green) and IO12 (blue) as well as an additional LED wired to IO27.

However, at the moment in wiring_digital.c pins 12, 14 and 27 are set only as analog (aka ADC): https://github.com/bouffalolab/arduino-bouffalo/blob/main/cores/bl616/wiring_digital.c#L16
Because of this digitalWrite fails for them and prints the following error message:
this pin is not used as a digital pin
Here is the line causing this: https://github.com/bouffalolab/arduino-bouffalo/blob/main/cores/bl616/wiring_digital.c#L113C17-L113C54
With the current Arduino port for Bouffalo, is there a way to use the pins listed in pin_adc like 12, 14 and 27 as digital pins?
Note a similar issue has been reported in #1
Best regards, Leon
Hi,
Ai-M61-32S Kit with Bouffalo BL618 provides RGB LED wired to IO12 (red), IO14 (green) and IO12 (blue) as well as an additional LED wired to IO27.

However, at the moment in
wiring_digital.cpins 12, 14 and 27 are set only as analog (aka ADC): https://github.com/bouffalolab/arduino-bouffalo/blob/main/cores/bl616/wiring_digital.c#L16Because of this
digitalWritefails for them and prints the following error message:Here is the line causing this: https://github.com/bouffalolab/arduino-bouffalo/blob/main/cores/bl616/wiring_digital.c#L113C17-L113C54
With the current Arduino port for Bouffalo, is there a way to use the pins listed in
pin_adclike 12, 14 and 27 as digital pins?Note a similar issue has been reported in #1
Best regards, Leon