Sha256: 9f10b4c530e412e2014aa05d2c8c85ee4ccd73463370313bb77379139e1ed64a
Contents?: true
Size: 434 Bytes
Versions: 20
Compression:
Stored size: 434 Bytes
Contents
# -*- coding: utf-8 -*- require 'smalruby/hardware' module Smalruby module Hardware # LEDを表現するクラス class Led < Dino::Components::Led def initialize(options) super(board: world.board, pin: Pin.smalruby_to_dino(options[:pin])) end # @!method on # LEDをオンにする # @!method off # LEDをオフにする def stop off end end end end
Version data entries
20 entries across 20 versions & 1 rubygems