tehviking / brick_pi_ruby

ruby wrappers for the BrickPi Lego Mindstorms C library
MIT License
7 stars 3 forks source link

Create blocks to specify a whole robot #6

Closed Floppy closed 10 years ago

Floppy commented 10 years ago

Like so:

bot = BrickPi.create do |bot|
  bot.motor :port_A
  bot.motor :port_B
  bot.touch_sensor :port_1
end
tehviking commented 10 years ago

This is an awesome first step toward a DSL that would make this compatible with Artoo. Seriously great stuff.

Floppy commented 10 years ago

exactly what I had in mind :)