Help for this page

Select Code to Download


  1. or download this
    class Relay():    
        global bus
    ...
            print 'ON_1...'
            self.DEVICE_REG_DATA &= ~(0x1<<0)  
            bus.write_byte_data(self.DEVICE_ADDRESS, self.DEVICE_REG_MODE1
    +, self.DEVICE_REG_DATA)
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    );
    $dev->writeByteData(0x06,0x1<<0);
    print Dumper $dev