Sha256: da2696fb00e4e8e85a9f5fd639e0dbd659d1f34abbcf2728022f296744574c35

Contents?: true

Size: 574 Bytes

Versions: 5

Compression:

Stored size: 574 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"
require "procon_bypass_man"
require "pry"

# \x30のみ生成する
# Usage:
#  $ `generate_output_report x zl y` のように、引数にボタン名を渡す

no_action_binary = ["30f28100800078c77448287509550274ff131029001b0022005a0271ff191028001e00210064027cff1410280020002100000000000000000000000000000000"].pack("H*")
user_operation = ProconBypassMan::Procon::UserOperation.new(no_action_binary)

ARGV.map { |x| x.to_sym }.each do |button|
  user_operation.press_button(button)
end

puts user_operation.binary.unpack.first

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.9 bin/generate_output_report
procon_bypass_man-0.3.8.1 bin/generate_output_report
procon_bypass_man-0.3.8 bin/generate_output_report
procon_bypass_man-0.3.7 bin/generate_output_report
procon_bypass_man-0.3.6 bin/generate_output_report