© Wolfram Donat 2018
Wolfram DonatLearn Raspberry Pi Programming with Pythonhttps://doi.org/10.1007/978-1-4842-3769-4_9

9. The Cat Toy

Wolfram Donat1 
(1)
Palmdale, California, USA
 

Most people are pretty familiar with the “cat chasing the little red dot” paradigm. It’s so popular it even had a short scene in one of the Shrek movies. Some cats will chase the laser spot until they drop. Some will only chase it for a little while. In any event, anyone who has a cat has probably used a laser pointer when playing with their feline friend at some point.

But wouldn’t it be nice if you could entertain your cat when you’re not there? A laser pointer, contrary to what you might think, does not have to be held and controlled by a human. With a little programming ...

Get Learn Raspberry Pi Programming with Python: Learn to Program on the World's Most Popular Tiny Computer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.