Skip to content

No time for flashPin() in v0.0.9 #10

Description

@KevWal

Hi Roel

Just a thought, how about seperating out flashPin to FlashPinOn and flashPinOff and then call flashPin() here:

packetCounter++;

if (validPacket)
{
  flashPinOn()
  packetCounter++;   
  getMetafromRaw((char *) buf);
  parseRawData((char *) buf);
  flashPinOff()
}

I havent had the time to time that code, but if it really doesn't take long enough to see the flash, then you could of course just toggle the LED for each packet:

void flashPinToggle()
{
    digitalWrite(FLASH_PIN, !digitalRead(FLASH_PIN)); 
}

That code can be optimised massivley if needed, but at the cost of compatibility.

Just a thought :)

Cheers
Kev

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions