class Omega2Gpio::Configuration
Attributes
highest_gpio_number[RW]
depends on Onion Omega2 hardware, needed to raise error in mock-mode
messaging_level[RW]
Controls whether the Gem shall write debug messages to standard out. This can be helpful messages like file system commands that are mocked Defaults to :debug. Defined are
2 ==> puts all messages 1 ==> puts warnings 0 ==> no messages at all
mock[RW]
Controls whether the GPIO shall be controlled on Onion Omegas file system or just mocked/faked as valid to allow development on systems that do not support Omega's GPIO control and would raise errors constantly Defaults to `false`. Set to `true` to mock Onion Omega GPIO
Public Class Methods
new()
click to toggle source
# File lib/omega2_gpio/configuration.rb, line 25 def initialize @mock = false @messaging_level = 2 @highest_gpio_number = 46 end