1. Ben Bass
  2. pylibftdi
Issue #8 new

Improve coupling of instances using Bus to Device instances

Ben Bass
repo owner created an issue

Some way of dynamically tying these together rather than the current coding-by-convention is probably helpful. Unless we suggest that only stub classes should be created with Bus descriptors;

{{{

!python

class MyDeviceBus(object): x = Bus(0,4) y = Bus(4,1)

class MyDevice(object): def init(self): device = BitBangDevice() self.bus = MyDeviceBus(device) self.x = 3 ... }}}

Comments (0)

  1. Log in to comment