Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/y/py-ninja-HEAD/ninja/nodes/devices.py   py-ninja(Download)
from .core  import Node, HasInput, HasOutput
from ninja.devices  import Button, RGBLED, Accelerometer, TemperatureSensor
 
 
class DeviceNode(Node):    
class LEDNode(DeviceNode, HasInput):
    device_class = RGBLED
    def receiveData(self, data, from_id):
        self.device.setColor(data)