between 300ms and 900ms to save CPU
Parameter -s
set the OS Clock to the last captured time
Example: ... s and not use the energy mode to save CPU and not set the OS clock
python readClock.py -r 30 -d 0 -e ... t("CALENDAR", datagram[36:58], datagram[58])
#set the defaults
reads = 0
akt_time = 0
h... Z"
return timezone
#get at normal date object to set the clock of the server
def getDCF77TimeStamp():
umbering you like to use
RPIO.setmode(RPIO.BCM)
# Set the used RPIO PORTs
# OUT
cs_port = 17
clk_port =... 2.540
# runs
v_runs = 10
# Helper Function to set the bits
# set a bit to 1
def setBit(int_type, offset):
mask = 1 << offset
return (int_type | mask)
# set a bit to 0
def clearBit(int_type, offset):
ma
OUT)
#Frist Blink
for i in range(0,10):
#set the out port to HIGH
#LED ON
RPIO... ait a short moment
time.sleep(2)
#set the out port to LOW again
# LED OFF
... _count=0
while run :
#if Switch is pushed set Output HIGH
if (RPIO.input(in_port)):
... output(out_port,RPIO.HIGH)
#If not pushed set Output LOW
else:
RPIO.out