Generic digital output - API problem

Simplify IoT Development.

Moderators: lily.li, violet, seth.welday

Post Reply
rogersan456
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Thu May 12, 2016 5:31 pm

Generic digital output - API problem

Post by rogersan456 » Sat Jun 11, 2016 5:33 pm

I setup a generic digital output, with a led (and series resistor) from 3.3 volts to the output. Using the API example in the App, I can turn the output on (LED lights) but I cannot turn it off again.

I have tried this on two different WIOs, and the result is the same. The output works for temperature/humidity sensors, so the output seems to be OK.

So it appears to be a software problem, has anyone come across this before?

xianning.lan
Pre-kindergarten
Pre-kindergarten
Posts: 20
Joined: Fri Sep 28, 2018 3:35 pm

Re: Generic digital output - API problem

Post by xianning.lan » Tue Dec 18, 2018 5:20 pm

Hi there,
I have tried with Wio LTE Cat.1 and Grove - Variable Color LED, here is the code:

Code: Select all

#include "WioLTEforArduino.h"

WioLTE wio;

void setup() {
  delay(200);

  wio.Init();
  wio.PowerSupplyGrove(true);
  delay(500);

  pinMode(WIOLTE_D20, OUTPUT);
}

void loop() {
  digitalWrite(WIOLTE_D20, HIGH);
  delay(1000);

  digitalWrite(WIOLTE_D20, LOW);
  delay(1000);
}
It's working like Blink example in Arduino IDE. Do you mind telling me which kind of Wio did you use? Please try the code above and tell me the result.
Best Regards,
Blu

Post Reply