<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ruby Gem to control Omega2 GPIO]]></title><description><![CDATA[<p dir="auto">I wrote the <a href="https://rubygems.org/gems/omega2_gpio" rel="nofollow">Ruby Gem 'omega2_gpio'</a> that wraps fast-gpio operation nicely.</p>
<p dir="auto"><strong>I'd love to get your feedback and see you testing/using it!</strong></p>
<p dir="auto"><a href="https://github.com/freizeitnerd/omega2_gpio" rel="nofollow">Github: https://github.com/freizeitnerd/omega2_gpio</a><br />
<a href="https://rubygems.org/gems/omega2_gpio" rel="nofollow">Rubgems: https://rubygems.org/gems/omega2_gpio</a></p>
<p dir="auto"><img src="https://github.com/freizeitnerd/omega2_gpio_examples/blob/master/media/omega2_gpio_irb.gif?raw=true" alt="alt text" class="img-responsive img-markdown" /></p>
<pre><code class="language-ruby">require "omega2_gpio"

Omega2Gpio.configuration.messaging_level = 2
Omega2Gpio.configuration.mock = false

gpio_numbers = [0,2,3,11,18,45,46]
gpios = []

gpio_numbers.each do |gpio_number|
  gpios.push(Omega2Gpio::Output.new(gpio_number).high)
end

gpios.each do |gpio|
  gpio.low
  sleep(0.3)
  gpio.high
end

gpios = []
gpio_numbers.each do |gpio_number|
  gpios.push(Omega2Gpio::Input.new(gpio_number))
end

gpios.each do |gpio|
  puts "GPIO#{gpio.gpio_number} reads value #{gpio.read}"
end
```</code></pre>
]]></description><link>http://community.onion.io/topic/2528/ruby-gem-to-control-omega2-gpio</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 16:10:26 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/2528.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Nov 2017 23:24:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ruby Gem to control Omega2 GPIO on Sat, 25 Nov 2017 23:24:08 GMT]]></title><description><![CDATA[<p dir="auto">I wrote the <a href="https://rubygems.org/gems/omega2_gpio" rel="nofollow">Ruby Gem 'omega2_gpio'</a> that wraps fast-gpio operation nicely.</p>
<p dir="auto"><strong>I'd love to get your feedback and see you testing/using it!</strong></p>
<p dir="auto"><a href="https://github.com/freizeitnerd/omega2_gpio" rel="nofollow">Github: https://github.com/freizeitnerd/omega2_gpio</a><br />
<a href="https://rubygems.org/gems/omega2_gpio" rel="nofollow">Rubgems: https://rubygems.org/gems/omega2_gpio</a></p>
<p dir="auto"><img src="https://github.com/freizeitnerd/omega2_gpio_examples/blob/master/media/omega2_gpio_irb.gif?raw=true" alt="alt text" class="img-responsive img-markdown" /></p>
<pre><code class="language-ruby">require "omega2_gpio"

Omega2Gpio.configuration.messaging_level = 2
Omega2Gpio.configuration.mock = false

gpio_numbers = [0,2,3,11,18,45,46]
gpios = []

gpio_numbers.each do |gpio_number|
  gpios.push(Omega2Gpio::Output.new(gpio_number).high)
end

gpios.each do |gpio|
  gpio.low
  sleep(0.3)
  gpio.high
end

gpios = []
gpio_numbers.each do |gpio_number|
  gpios.push(Omega2Gpio::Input.new(gpio_number))
end

gpios.each do |gpio|
  puts "GPIO#{gpio.gpio_number} reads value #{gpio.read}"
end
```</code></pre>
]]></description><link>http://community.onion.io/post/15178</link><guid isPermaLink="true">http://community.onion.io/post/15178</guid><dc:creator><![CDATA[freizeitnerd]]></dc:creator><pubDate>Sat, 25 Nov 2017 23:24:08 GMT</pubDate></item></channel></rss>