Sha256: fcddde9d81ae9627471422c8e8bb46a3df16f14e0483d91a4277fdea182cd0b7

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 Bytes

Contents

begin
	require 'wiringpi2'
	
	module WiringPi
		class I2C
			Wiringpi = Wiringpi2
		end
	end
    
rescue Exception => e
    module WiringPi
        class I2C
            def initialize(device)
                puts 'wiringpi2 not present, using mock class'
            end
            
            def write(data)
            end

            def write_reg_8(reg, data)
            end
        end
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
i2c-alpha_display-0.5.1 lib/i2c/alpha_display/hardware.rb
i2c-alpha_display-0.3.0 lib/i2c/alpha_display/hardware.rb
i2c-alpha_display-0.1.0 lib/i2c/alpha_display/hardware.rb