Class: Smalruby::Hardware::Led
- Inherits:
-
Smalrubot::Components::Led
- Object
- Smalrubot::Components::Led
- Smalruby::Hardware::Led
- Defined in:
- lib/smalruby/hardware/led.rb
Overview
LEDを表現するクラス
Instance Method Summary collapse
-
#initialize(options) ⇒ Led
constructor
A new instance of Led.
- #stop ⇒ Object
Constructor Details
#initialize(options) ⇒ Led
Returns a new instance of Led.
8 9 10 |
# File 'lib/smalruby/hardware/led.rb', line 8 def initialize() super(board: world.board, pin: Pin.smalruby_to_smalrubot([:pin])) end |
Instance Method Details
#stop ⇒ Object
20 21 22 |
# File 'lib/smalruby/hardware/led.rb', line 20 def stop turn_off end |