Sha256: e59cad622d855c6c8355089b7f1972a993c64f610c0cf4365438042748f7662c

Contents?: true

Size: 373 Bytes

Versions: 48

Compression:

Stored size: 373 Bytes

Contents

# -*- coding: utf-8 -*-

DESCRIPTION = <<EOS
LEDを1秒間隔で点滅させます
EOS

# デジタルの13番ピンに接続してください。

require 'smalruby'

init_hardware

stage1 = Stage.new(color: 'white')

stage1.on(:start) do
  draw_font(string: DESCRIPTION, color: 'black')

  loop do
    led('D13').on
    sleep(1)
    led('D13').off
    sleep(1)
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
smalruby-0.1.0-x86-mingw32 samples/hardware_led.rb
smalruby-0.1.0 samples/hardware_led.rb
smalruby-0.0.32-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.32 samples/hardware_led.rb
smalruby-0.0.31-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.31 samples/hardware_led.rb
smalruby-0.0.30-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.30 samples/hardware_led.rb
smalruby-0.0.29-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.29 samples/hardware_led.rb
smalruby-0.0.28-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.28 samples/hardware_led.rb
smalruby-0.0.27-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.27 samples/hardware_led.rb
smalruby-0.0.26-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.26 samples/hardware_led.rb
smalruby-0.0.25-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.25 samples/hardware_led.rb
smalruby-0.0.24-x86-mingw32 samples/hardware_led.rb
smalruby-0.0.24 samples/hardware_led.rb