Skip to content

How to use digitalWrite for all pins from Ai-M61-32S Kit with BL618? #6

Description

@leon-anavi

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.
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions