~/talk

My Little C Extension: Lego Robots are Magic

Talkat Nickel City Ruby 2014 · 2014-10-02..10-04· [ruby, embedded-and-hardware]
slides:none on file

A hobby LEGO robot built on a Raspberry Pi and the BrickPi drivers becomes a Ruby-controlled robot by writing a C extension and packaging it as a gem. The process hits SD-card and wiringPi driver issues, a segfault that destroys a dev machine, then a working init and motor commands; motors spin. A first gem is released to rubygems.org, a remote-control script runs in ~45 minutes, and a simple Logo-like drawing app lets a child produce art—play leads to shipping.

AI-written summary · about

  1. 0:00Start
  2. 2:53Programming
  3. 12:56Create a gem
  4. 13:08Lay filesystem groundwork
  5. 13:46Specify Ruby API
  6. 14:15Write first wrapper
  7. 15:45Object-oriented C
  8. 16:134. Build gem & experiment
  9. 20:27NAMESPACE ALL THE THINGS!
  10. 21:01Prefix C method helpers for easy identification
  11. 24:50Motors spin!
  12. 26:21rake release
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.