Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

I2C help (from python)

by packetstormer (Monk)
on Nov 30, 2015 at 15:30 UTC ( [id://1148902]=perlquestion: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1148902]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-20 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found