Skip to content

NINA module pin control functions are undocumented #24

@vshymanskyy

Description

@vshymanskyy

Activity

facchinm

facchinm commented on Oct 10, 2018

@facchinm
Contributor

Hi @vshymanskyy ,
the APIs are already there, only a bit hidden

static void pinMode(uint8_t pin, uint8_t mode);

You have to call it like:

#include <utility/wifi_drv.h>
WiFiDrv::pinMode(25, OUTPUT);  //GREEN
WiFiDrv::pinMode(26, OUTPUT);  //RED
WiFiDrv::pinMode(27, OUTPUT);  //BLUE
...
WiFiDrv::digitalWrite(27, HIGH); // for full brightness
...
WiFiDrv::analogWrite(27, 128);  // for configurable brightness

I'm leaving the issue open to better document it

sandeepmistry

sandeepmistry commented on Oct 10, 2018

@sandeepmistry
Contributor

Please note these API's may change or be removed in the future, as the firmware on the NINA may control the LED status directly.

vshymanskyy

vshymanskyy commented on Oct 10, 2018

@vshymanskyy
Author

@facchinm @sandeepmistry Please then have an option to disable the built-in LED control, if possible.

theeraphong0

theeraphong0 commented on Apr 5, 2019

@theeraphong0
lotelx

lotelx commented on Jul 10, 2019

@lotelx
TalibaniGrannyFanny

TalibaniGrannyFanny commented on Nov 9, 2019

@TalibaniGrannyFanny
italex33

italex33 commented on Jan 25, 2020

@italex33
thekunalsaini

thekunalsaini commented on Feb 28, 2020

@thekunalsaini
systembolaget

systembolaget commented on Jun 10, 2020

@systembolaget
cansik

cansik commented on Jun 17, 2020

@cansik
systembolaget

systembolaget commented on Jun 17, 2020

@systembolaget
changed the title [-]MKR WiFi 1010 RGB control[/-] [+]NINA module pin control functions are undocumented[/+] on Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: documentationRelated to documentation for the projecttype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @systembolaget@sandeepmistry@vshymanskyy@SimonePDA@lotelx

        Issue actions

          NINA module pin control functions are undocumented · Issue #24 · arduino-libraries/WiFiNINA