Module: Blinky::DreamCheeky::WebmailNotifier
- Defined in:
- lib/device_recipes/dream_cheeky/webmail_notifier.rb
Instance Method Summary collapse
- #building! ⇒ Object
- #colour!(colour) ⇒ Object
- #failure! ⇒ Object
- #init ⇒ Object
- #off! ⇒ Object
- #success! ⇒ Object
- #warning! ⇒ Object
Instance Method Details
#building! ⇒ Object
13 14 15 |
# File 'lib/device_recipes/dream_cheeky/webmail_notifier.rb', line 13 def building! colour!("\x00\x00\xFF") end |
#colour!(colour) ⇒ Object
31 32 33 |
# File 'lib/device_recipes/dream_cheeky/webmail_notifier.rb', line 31 def colour!(colour) send(colour + "\x00\x00\x00\x00\x05") end |
#failure! ⇒ Object
9 10 11 |
# File 'lib/device_recipes/dream_cheeky/webmail_notifier.rb', line 9 def failure! colour!("\xFF\x00\x00") end |
#init ⇒ Object
25 26 27 28 29 |
# File 'lib/device_recipes/dream_cheeky/webmail_notifier.rb', line 25 def init send "\x1f\x02\x00\x2e\x00\x00\x2b\x03" send "\x00\x02\x00\x2e\x00\x00\x2b\x04" send "\x00\x00\x00\x2e\x00\x00\x2b\x05" end |
#off! ⇒ Object
21 22 23 |
# File 'lib/device_recipes/dream_cheeky/webmail_notifier.rb', line 21 def off! colour!("\x00\x00\x00") end |
#success! ⇒ Object
5 6 7 |
# File 'lib/device_recipes/dream_cheeky/webmail_notifier.rb', line 5 def success! colour!("\x00\xFF\x00") end |
#warning! ⇒ Object
17 18 19 |
# File 'lib/device_recipes/dream_cheeky/webmail_notifier.rb', line 17 def warning! colour!("\xFF\x2A\x00") end |