Module: Blinky::ThingM::Blink1
- Defined in:
- lib/device_recipes/thing_m/blink_1.rb
Instance Method Summary collapse
- #building! ⇒ Object
- #failure! ⇒ Object
- #init ⇒ Object
- #off! ⇒ Object
- #success! ⇒ Object
- #warning! ⇒ Object
Instance Method Details
#building! ⇒ Object
15 16 17 18 |
# File 'lib/device_recipes/thing_m/blink_1.rb', line 15 def building! stop set_colour("\x00\x00\xFF") end |
#failure! ⇒ Object
10 11 12 13 |
# File 'lib/device_recipes/thing_m/blink_1.rb', line 10 def failure! stop play end |
#init ⇒ Object
30 31 32 |
# File 'lib/device_recipes/thing_m/blink_1.rb', line 30 def init set_flash_pattern("\xFF\x00\x00") end |
#off! ⇒ Object
25 26 27 28 |
# File 'lib/device_recipes/thing_m/blink_1.rb', line 25 def off! stop set_colour("\x00\x00\x00") end |
#success! ⇒ Object
5 6 7 8 |
# File 'lib/device_recipes/thing_m/blink_1.rb', line 5 def success! stop set_colour("\x00\xFF\x00") end |
#warning! ⇒ Object
20 21 22 23 |
# File 'lib/device_recipes/thing_m/blink_1.rb', line 20 def warning! stop set_colour("\xFF\x2A\x00") end |