Public projects 1

Prop Bomb For Paintball/Airsoft

Project showcase by draymond

  • 3,994 views
  • 3 comments
  • 11 respects

Respected projects 0

 draymond hasn't respected any projects yet.

Comments 1

  • Arduino Kitchen Timer almost 2 years ago

    there is a way that you can make the time show up double digit in each area even if its double 0, its a bit crude, but it works, i have a similar project that i use this method for, to adapt it to your code i believe just putting it in your cases might work.

    here is a snippet from my project that you may be able to adapt, just aesthetics at this point tho.

    lcd.print("Timer set at:");
    if (Hours >= 10)
    {
    lcd.setCursor (7, 1);
    lcd.print (Hours);
    }
    if (Hours < 10)
    {
    lcd.setCursor (7, 1);
    lcd.write ("0");
    lcd.setCursor (8, 1);
    lcd.print (Hours);
    }
    lcd.print (":");

    if (Minutes >= 10)
    {
      lcd.setCursor (10, 1);
      lcd.print (Minutes);
    }
    if (Minutes < 10)
    {
      lcd.setCursor (10, 1);
      lcd.write ("0");
      lcd.setCursor (11, 1);
      lcd.print (Minutes);
    }
    lcd.print (":");
    
    if (Seconds >= 10)
    {
      lcd.setCursor (13, 1);
      lcd.print (Seconds);
    }
    
    if (Seconds < 10)
    {
      lcd.setCursor (13, 1);
      lcd.write ("0");
      lcd.setCursor (14, 1);
      lcd.print (Seconds);
    }  
    
Add projectSign up / Login