• Monument@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 hours ago

    I did a quick search, so I’m basically an expert now. imaginary hair flip

    So, some flashlights have multiple brightness modes. I guess that’s controlled via a tiny, low power microprocessor.
    And if it’s a computer, it can be hacked!

    So the firmware does things, depending on the capabilities of the hardware in the flashlight, but you can set it to override defaults for brightness, change how many levels of brightness you have, add (or remove) a blinky SOS mode, sleep timers in case it’s accidentally left on, and even add a way to check the battery percentage via a button press pattern, that the flashlight responds to with a series of blinks.
    No lie, kind of fascinating stuff. I like to hack other stuff, like smart appliances (replacing firmware so it doesn’t share my data, but I still get to use it as a smart device). I don’t think I would be into talking to my flashlight via Morse code, but I can see the appeal as both a hobby, and for folks who need flashlights as safety equipment.

    • ExcessShiv@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      2 hours ago

      Why the hell make it with a microprocessor when something simple like brightness levels and simple blinking patterns can be made with much simpler digital electronics without the need for any programming whatsoever leaving the whole hacking-issue out of the equation.

      • fruitycoder@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 minutes ago

        Because you could design all of those feature in analog, and make custom boards for every change or have one board you update every few years based on supply, cost, and maybe power performance, but make and adjust features on a minute by minute basis if want to.

        The driver, power source, etc can all be more easily separated from the logic too. It could be tiny, or massive. Same software, same controller.