You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • That's great - thanks for all your work on this! Really good to see some Energy Profiler graphs too - is that part of the Gecko starter kit?

    As you saw already, watches trigger on both edges - mainly because it just simplifies things (and it's needed if debouncing is enabled).

    Does the Gecko kit have RTS/CTS on the USB->Serial interface part of it? Potentially we could look at modifying the existing flow control code such that it could work with deep sleep.

    Having said that, right now using it is as simple as:

    setWatch(function(e) {
     CTS.write(e.state);
     setDeepSleep(!e.state);
    }, RTS, { edge:"both", repeat:true });
    
About

Avatar for Gordon @Gordon started