vsergeev / python-periphery

A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux.
MIT License
531 stars 142 forks source link

Return self so with I2C(..) as i2c will work #31

Closed ubiquitousthey closed 5 years ago

ubiquitousthey commented 5 years ago

Pretty simple change. Any interest in the PR?

vsergeev commented 5 years ago

Thanks, cherry-picked in ac457d6. I've been working on version 2 of c-periphery to add character device API for GPIOs, which will soon arrive to python-periphery.