# Path: lib/baseClass.py
# class AbstractClass(object):
#     """
#     Generic parent class for all class
#     """
#     __metaclass__ = ABCMeta
# 
#     @classmethod
#     def get_config(cls):
#         return {}
# 
#     """
#     __init__ params'name must be the same with config
#     """
#     @classmethod
#     def get_instance(cls):
#         config = cls.get_config()
#         instance = cls(**config)
#         return instance
# 
#     @classmethod
#     @abstractmethod
#     def is_available(cls):
#         return true
# 
#     def __init__(self, **kwargs):
#         self._logger = lib.util.init_logger(__name__)


import sys,os,time
import yaml
import RPi.GPIO
import lib.appPath
from lib.baseClass import AbstractClass
                self._pwmG.ChangeDutyCycle(100)
                self._pwmB.ChangeDutyCycle(0)
                time.sleep(t)
                
                # 绿灯，蓝灯全亮，红灯全暗（青色）
                self._pwmR.ChangeDutyCycle(100)
                self._pwmG.ChangeDutyCycle(0)
                self._pwmB.ChangeDutyCycle(0)
                time.sleep(t)
                
                # 红灯，绿灯，蓝灯全亮（白色）
                self._pwmR.ChangeDutyCycle(0)
                self._pwmG.ChangeDutyCycle(0)
                self._pwmB.ChangeDutyCycle(0)
                time.sleep(t)

                # 调整红绿蓝LED的各个颜色的亮度组合出各种颜色
                for r in xrange (0, 101, 20):
                    self._pwmR.ChangeDutyCycle(r)
                    for g in xrange (0, 101, 20):
                        self._pwmG.ChangeDutyCycle(g)
                        for b in xrange (0, 101, 20):
                            self._pwmB.ChangeDutyCycle(b)
                            time.sleep(0.01)
                
        except KeyboardInterrupt:
            pass

        self.clear()


# Path: lib/baseClass.py
# class AbstractClass(object):
#     """
#     Generic parent class for all class
#     """
#     __metaclass__ = ABCMeta
# 
#     @classmethod
#     def get_config(cls):
#         return {}
# 
#     """
#     __init__ params'name must be the same with config
#     """
#     @classmethod
#     def get_instance(cls):
#         config = cls.get_config()
#         instance = cls(**config)
#         return instance
# 
#     @classmethod
#     @abstractmethod
#     def is_available(cls):
#         return true
# 
#     def __init__(self, **kwargs):
#         self._logger = lib.util.init_logger(__name__)


# Path: lib/gpio/ledRGB.py
import sys,os,time
import yaml
import RPi.GPIO
import lib.appPath
from lib.baseClass import AbstractClass

                self._pwmG.ChangeDutyCycle(100)
                self._pwmB.ChangeDutyCycle(0)
                time.sleep(t)
                
                # 绿灯，蓝灯全亮，红灯全暗（青色）
                self._pwmR.ChangeDutyCycle(100)
                self._pwmG.ChangeDutyCycle(0)
                self._pwmB.ChangeDutyCycle(0)
                time.sleep(t)
                
                # 红灯，绿灯，蓝灯全亮（白色）
                self._pwmR.ChangeDutyCycle(0)
                self._pwmG.ChangeDutyCycle(0)
                self._pwmB.ChangeDutyCycle(0)
                time.sleep(t)

                # 调整红绿蓝LED的各个颜色的亮度组合出各种颜色
                for r in xrange (0, 101, 20):
                    self._pwmR.ChangeDutyCycle(r)
                    for g in xrange (0, 101, 20):
                        self._pwmG.ChangeDutyCycle(g)
                        for b in xrange (0, 101, 20):
                            self._pwmB.ChangeDutyCycle(b)
                            time.sleep(0.01)
                
        except KeyboardInterrupt:
            pass

        self.clear()


    def clear(self):