Skip to content

pimoroni/circuitpython_adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CircuitPython Adapter

This library aims to provide a translation layer from SMBus calls to CircuitPython i2c calls, to allow pre-existing code to run on CircuitPython with little to no modifications.

Currently implements:

  • write_i2c_block_data
  • read_i2c_block_data
  • readfrom_mem

Example

Original Code:

from smbus import SMBus
i2c_bus = SMBus(1)

Using CircuitPython Adapter:

from pimoroni_circuitpython_adapter import not_SMBus as SMBus
i2c_bus = SMBus(1)

Releases

No releases published

Packages

No packages published

Languages