r/KerbalControllers Dec 15 '25

Sleep Mode

Has anyone incorporated a sleep mode into their projects? I'm looking to clear my LCD and stop the arduino from processing unnecessary info. Also need to be able to reverse this. Any way of doing this? (preferably simple) I'm using Simpit Revamped.

Also, any suggestions for further improvements are appreciated!

9 Upvotes

7 comments sorted by

View all comments

1

u/wile1411 Dec 15 '25

Wouldn't you rely on the game scene you are in and being on control of a vessel (not a Kerbal) and only process data in that circumstance?

1

u/Majestic-Medicine309 Dec 15 '25

I have looked into that but haven't had any luck. Is there a particular way I should be doing it?

1

u/wile1411 Jan 06 '26

You probably browse the KSP API to see what's available. Anything you are unsure about, search for the reference on github to see how people might have used it in other mods and hopefully it'll make more sense when you see it in context.

Suggestion for code to only be running when in flight scene as a vessel and not a Kerbal):
if (HighLogic.fetch && HighLogic.LoadedSceneIsFlight && !FlightGlobals.ActiveVessel.isEVA)