---
-name: ð\9f\9a\80 New Board Request
+name: ð\9f\93\9f New Board Request
about: Request Support for a New Board
title: ''
labels: 'New Board Request'
class I2C:
- """I2C class"""
+ """
+ I2C class
+
+ Baudrate has no effect on Linux systems. The argument is only there for compatibility.
+ """
MASTER = 0
SLAVE = 1
raise NotImplementedError("Only I2C Master supported!")
_mode = self.MASTER
- # if baudrate != None:
- # print("I2C frequency is not settable in python, ignoring!")
+ if baudrate is not None:
+ print("I2C frequency is not settable in python, ignoring!")
try:
self._i2c_bus = smbus.SMBus(bus_num)
"""
Busio I2C Class for CircuitPython Compatibility. Used
for both MicroPython and Linux.
+
+ NOTE: Frequency has no effect on Linux systems. The argument is only there for compatibility.
"""
def __init__(self, scl, sda, frequency=100000):