Module: Blinky::DelcomEngineering::VisualIndicator::GenerationII
- Defined in:
- lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb
Instance Method Summary collapse
- #building! ⇒ Object
- #failure! ⇒ Object
- #init ⇒ Object
- #off! ⇒ Object
- #success! ⇒ Object
- #warning! ⇒ Object
Instance Method Details
#building! ⇒ Object
16 17 18 19 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb', line 16 def building! off! set_colour("\x04") end |
#failure! ⇒ Object
11 12 13 14 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb', line 11 def failure! off! set_colour("\x02") end |
#init ⇒ Object
30 31 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb', line 30 def init end |
#off! ⇒ Object
26 27 28 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb', line 26 def off! set_colour("\x00") end |
#success! ⇒ Object
6 7 8 9 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb', line 6 def success! off! set_colour("\x01") end |
#warning! ⇒ Object
21 22 23 24 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_two.rb', line 21 def warning! off! set_colour("\x06") end |