Sha256: b06ebb973eb002b09ee71301795d333b8bac4a98d74ed52f33726f8f47259136
Contents?: true
Size: 617 Bytes
Versions: 42
Compression:
Stored size: 617 Bytes
Contents
# -*- coding: utf-8 -*- module RubyToBlock module Block class HardwareMotorDriverSetSpeed < CharacterMethodCall include HardwareOperation blocknize '^\s*' + CHAR_RE + 'motor_driver\(' + PWM_PIN_RE + '\)\.speed\s*=\s*(\S+)\s*$', statement: true, inline: true def self.process_match_data(md, context) md2 = regexp.match(md[type]) add_character_method_call_block(context, md2[1], new(fields: { PIN: md2[2] }), SPEED: md2[3]) true end end end end
Version data entries
42 entries across 42 versions & 1 rubygems