Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_camera_driver(source):
from . import camera_driver
return camera_driver.CameraDriver()
def get_gpio_driver():
from . import gpio
return gpio.GPIODriver()
def get_i2c_driver(address, bus=0):
from . import i2c
return i2c.I2CDriver(address, bus)