Full working version (with OS, no DeepSleep)