jandelgado / jled

Non-blocking LED controlling library for Arduino and friends.
MIT License
324 stars 51 forks source link

can the candle or other examples be ran inside a function #91

Closed Tezzatron81 closed 2 years ago

Tezzatron81 commented 2 years ago

i have a sketch with 5 leds and 10 counts of a button, trying to get the candle function to work on push 9 but it either turns on at the start or doesnt turn on at all. am i doing something wrong? im calling led.update(); in the loop,and again within the "if count =9" statement?