Error with basic sketch

0 views
Skip to first unread message

lostcaggy

unread,
Dec 24, 2009, 10:39:39 AM12/24/09
to Ruby Arduino Development
Hi I get the following error
rake aborted!
private method `gsub' called for nil:NilClass

with this sketch
output_pin 13, :as => :led

def loop
digitalWrite led, ON
delay 750
digitalWrite led, OFF
delay 250
end

if I chane ON to 1 and OFF to zero it works, but I though ON and OFF
was supposed to be recognised using
Arduino 15 and latest madrona rad

Any ideas please

JD Barnhart

unread,
Dec 24, 2009, 2:13:05 PM12/24/09
to ruby-arduino...@googlegroups.com
Try:

         def loop
           led.on
           delay 750
           led.off
           delay 250
         end


--

You received this message because you are subscribed to the Google Groups "Ruby Arduino Development" group.
To post to this group, send email to ruby-arduino...@googlegroups.com.
To unsubscribe from this group, send email to ruby-arduino-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-arduino-development?hl=en.



lostcaggy

unread,
Dec 24, 2009, 2:34:10 PM12/24/09
to Ruby Arduino Development
Reply all
Reply to author
Forward
0 new messages