<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Ruby+SerialportでHEX値を送るコードです。 ##シリアルポートの有無を確認 if ARGV.size &lt; 1 puts 'ruby ruby-serialterm.rb /dev/tty/ttyUSB' exit 1 end ##初期化 sp = SerialPort.new(ARGV[0], 9600, 8, 1, SerialPort::NONE) ##パケット生成 packet = [0x7E, 0x00, (中略) , 0x1C] ##書き込み #C =&gt; 8bit無符号整数。 sp.write(packet.flatten.pack('C*')) 書き込みのところで'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F20120108%2F1325994136&quot; title=&quot;Ruby+SerialportでHEX値を送る - Bye Bye Moore&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-01-08 12:42:16</published>
  <title>Ruby+SerialportでHEX値を送る</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/20120108/1325994136</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
