You are reading a single comment by @bb5 and its replies. Click here to read the full conversation.
  • As I yesterday find out about Cradle let me present:
    App / improvement idea - cradle detection
    This is ugly code but seems to work ;)
    I would like to made g.flip() works but no luck so I used first method I think is suitable (return to clock) to proof of concept my idea.

    Bangle.on('charging', function(charging) {
      const storage = require('Storage');
      tmpset = storage.readJSON("setting.json");
      if (charging) {
        g.setRotation(1,false);
        Bangle.showClock();
      } else {
        g.setRotation(tmpset.rotate,false);
        Bangle.showClock();
      }
    
    });
    
About

Avatar for bb5 @bb5 started