Anyhow, what I'm saying is that my well-laid-out plans for hotkey, battery monitor, and screen dim/bright buttons were apparently not as well-thought-out as they could've been.


That's actually pretty cool... Woof on that shipping, though ($9 for a $1.50 part). Gonna either need to find some more stuff to order, or find me another source. (Or just suck it up and pay.)infinitLoop wrote: ↑Sat Jun 01, 2019 6:17 pmi just ordered some of these to try to use for digital volume + hotkey. maybe it would fit in there. it would only be three functions though.
https://www.sparkfun.com/products/8184
i think this is its spec:
https://www.electrokit.com/uploads/prod ... S-1305.pdf
nice. yeah, you should be able to. i'll map the input to "h" key a lot of times and still have that do the battery monitor, but i do end up toggling it on and off a lot more when i'm hotkey-ingRxBrad wrote: ↑Sat Jun 01, 2019 6:32 pm
That's actually pretty cool... Woof on that shipping, though ($9 for a $1.50 part). Gonna either need to find some more stuff to order, or find me another source. (Or just suck it up and pay.)
Perhaps I could configure long-press on the hotkey to toggle the battery monitor, and then this would do everything I need. I need to test and see if GPIOs that are already mapped by Retrogame can also toggle the battery monitor in MintyShutdown.py.
EDIT: Snagged one off Amazon..
Uxcell a15050500ux0507 3 Pin 5 Way Momentary Push Button SMD SMT Mini Tactile Switch https://www.amazon.com/dp/B0147XLUVS
that's good info. i messed around with that dimming hack once, but decided not to incorporate it into the build since i couldn't figure out a good spot to put the buttons. i didn't leave it in there long enough to test performance though.RxBrad wrote: ↑Sun Jun 16, 2019 1:46 pmI will note that using the Pi-based solution for dimming the screen on a Gearbest composite LCD resulted in some really significant slowdown in game emulation. Also, there's a fair amount of ground-loop noise when dimming the screen that way. A lot of games are downright unplayable when the PIGPIOD daemon is running in the background, but run perfect if the daemon & dimming program are not running.
Castlevania: Dracula X is a favorite game of mine, and is my go-to when testing SNES game emulation speed. Basically, when the first level starts, if running the PIGPIOD daemon, (via "sudo pigpiod &" in rc.local) everything just slows down to a crawl. MintyBatteryMonitor also cause a bit of annoying slowdown, but nowhere near what PIGPIOD does.
What I'm trying to get at is: now I get to mess around with the ATTiny solution for dimming the Gearbest screen. I have a couple ATTiny13a's & and an Arduino Uno on the way (I probably could've programmed the ATTiny with one of the Leonardo Pro Micros I have sitting around, but looking around online, that sounds like it could be a chore to get working).
Code: Select all
iconsState = percent
Code: Select all
iconState = percent
Users browsing this forum: No registered users and 1 guest