Profile image

How do you make a blinking warning light for low fuel?

1,261 Tuxedoman  6 months ago

Been trying to find a solution online but haven't found anything that works.

  • Log in to leave a comment
  • Profile image

    Fuel < 0.1 ? pingpong(round(sum(10)), 1)) : 0
    Open the XML editor, go into the BeaconLight menu, paste this into the input field.

    This should work. It's a modified version of a blink function I'm using for something else. Some values may need to be tweaked.

    You can also technically do this by just putting Fuel < 0.1 into the input field and setting the blink style to slow/fast. Whichever works for you. The code that I initially posted is kinda overcomplicated for this specific scenario. The initial code is a bit more practical if you want to have multiple blink speeds based on certain data inputs (what I was using it for).

    Pinned 6 months ago
  • Profile image
    61.0k TheMouse

    @Graingy
    Hmm, well played.

    +1 6 months ago
  • Profile image
    37.3k Graingy

    @TheMouse So get other people to find smart people.

    +1 6 months ago
  • Profile image
    61.0k TheMouse

    @Graingy
    Never do something you can have someone else do for you!

    6 months ago
  • Profile image
    37.3k Graingy

    @TheMouse tracks

    6 months ago
  • Profile image
    61.0k TheMouse

    @Graingy
    Someone else is smart.

    +1 6 months ago
  • Profile image
    1,261 Tuxedoman

    @TheFlightGuySP Thanks!

    6 months ago
  • Profile image
    37.3k Graingy

    @TheFlightGuySP Thanks smart person I'll forget this immediately

    6 months ago
  • Profile image
    37.3k Graingy

    @TheMouse know any smart people?

    +1 6 months ago