class AdafruitServoDriver::I2CDevice
Constants
- DEVICES
Public Class Methods
detect()
click to toggle source
# File lib/adafruit-servo-driver/i2c_device.rb, line 9 def detect DEVICES.find(if_not_found) do |device_path| File.exist? device_path end end
if_not_found()
click to toggle source
# File lib/adafruit-servo-driver/i2c_device.rb, line 15 def if_not_found -> { raise DeviceNotFoundError.new } end