Sha256: e266c21c75bf6fd4411c2af5c125eb953fb5f0545219e44221f97179abdd2ee5
Contents?: true
Size: 430 Bytes
Versions: 64
Compression:
Stored size: 430 Bytes
Contents
# -*- coding: utf-8 -*- DESCRIPTION = <<EOS カーソルキーでサーボモーターを操作します EOS require 'smalruby' init_hardware stage1 = Stage.new(color: 'white') stage1.on(:start) do draw_font(string: DESCRIPTION, color: 'black') servo('D3').position = 90 end stage1.on(:key_down, K_UP, K_LEFT) do servo('D3').position += 2 end stage1.on(:key_down, K_DOWN, K_RIGHT) do servo('D3').position -= 2 end
Version data entries
64 entries across 64 versions & 1 rubygems