# ====== Legal notices
#
# Copyright (C) 2013 - 2020 GEATEC engineering
#
# This program is free software.
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the QQuickLicence for details.
#
# The QQuickLicense can be accessed at: http://www.qquick.org/license.html
#
# __________________________________________________________________________
#
#
#  THIS PROGRAM IS FUNDAMENTALLY UNSUITABLE FOR CONTROLLING REAL SYSTEMS !!
#
# __________________________________________________________________________
#
# It is meant for training purposes only.
#
# Removing this header ends your licence.
#

import simpylc as sp

class Timing (sp.Chart):
    def __init__ (self):
        sp.Chart.__init__ (self)
        
    def define (self):
        self.channel (sp.world.ledTimer.rampTimer, sp.red, 0, 9, 180)
        self.channel (sp.world.ledTimer.direction, sp.white, 0, 1, 20)
        self.channel (sp.world.ledTimer.oneshot, sp.aqua, 0, 1, 20)
        self.channel (sp.world.ledTimer.blinkTime, sp.blue, 0, 3, 60)
        self.channel (sp.world.ledTimer.blinkTimer, sp.yellow, 0, 3, 60)
        self.channel (sp.world.ledTimer.led, sp.green, 0, 1, 20)
        
