Skip to content

Commit c8de66e

Browse files
committed
updated green LED handling (not required for EasyVR 3)
1 parent b5cded3 commit c8de66e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

examples/TestEasyVR/TestEasyVR.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,9 @@ void loop()
542542

543543
if (!isSleeping && !isBusy)
544544
{
545-
easyvr.setPinOutput(EasyVR::IO1, HIGH); // LED on (listening)
545+
if (easyvr.getID() < EasyVR::EASYVR3)
546+
easyvr.setPinOutput(EasyVR::IO1, HIGH); // LED on (listening)
547+
546548
if (useTokens)
547549
{
548550
pcSerial.print(F("Detect a "));
@@ -572,7 +574,8 @@ void loop()
572574
isSleeping = false;
573575
isBusy = false;
574576

575-
easyvr.setPinOutput(EasyVR::IO1, LOW); // LED off
577+
if (easyvr.getID() < EasyVR::EASYVR3)
578+
easyvr.setPinOutput(EasyVR::IO1, LOW); // LED off
576579

577580
if (easyvr.isAwakened())
578581
{

0 commit comments

Comments
 (0)