Module: Blinky::DelcomEngineering::VisualIndicator::GenerationI
- Defined in:
- lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb
Instance Method Summary collapse
- #building! ⇒ Object
- #failure! ⇒ Object
- #init ⇒ Object
- #off! ⇒ Object
- #success! ⇒ Object
- #warning! ⇒ Object
Instance Method Details
#building! ⇒ Object
14 15 16 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb', line 14 def building! set_colour(0xFF && ~0x04) end |
#failure! ⇒ Object
10 11 12 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb', line 10 def failure! set_colour(0xFF && ~0x02) end |
#init ⇒ Object
26 27 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb', line 26 def init end |
#off! ⇒ Object
22 23 24 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb', line 22 def off! set_colour(0xFF) end |
#success! ⇒ Object
6 7 8 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb', line 6 def success! set_colour(0xFF && ~0x01) end |
#warning! ⇒ Object
18 19 20 |
# File 'lib/device_recipes/delcom_engineering/visual_indicator_gen_one.rb', line 18 def warning! set_colour(0xFF && ~0x03) end |