Web based Jalousie control.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
397 B

  1. '''
  2. Created on 24.06.2014
  3. @author: volkma_s
  4. '''
  5. from mc_control.mc_statemachine import mc_state_machine, mc_event
  6. import time
  7. if __name__ == '__main__':
  8. Port_Up = 0
  9. Port_Down = 1
  10. sm = mc_state_machine(Port_Up, Port_Down)
  11. sm.MailBox.put(mc_event.Up)
  12. while(1==1):
  13. time.sleep(1)
  14. print('State = {}'.format(sm.state))
  15. pass