~ubuntu-app-review-contributors/ubuntu-app-reviews/wakeonplan

« back to all changes in this revision

Viewing changes to wakeonplan/read_rtc.py

  • Committer: App Bot
  • Author(s): Сергій Загорія
  • Date: 2012-07-06 18:23:17 UTC
  • Revision ID: appbot@holba.ch-20120706182317-5yzrrb5kqx93gzs2
Tags: 0.4public1ubuntu1
Fixed -s option

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from time import sleep
 
2
with open("/dev/rtc0", "rb") as f:
 
3
    byte = f.read(1)
 
4
    while True:
 
5
        print ord(f.read(1))
 
6
        sleep(1)
 
7