Back to Parent

void loop ()
{
  if(isNearMagnet()) //How do I loop the light to remain on?
  {
    turnOnLED();
  }else
  {
    turnOffLED();
  }
}
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0