O'Reilly logo

BeagleBone Robotic Projects by Richard Grimmett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic programming constructs on the BeagleBone Black

Now that you know how to enter and run a simple Python program on the BeagleBone Black, let's look at some more complex programming constructs. Specifically, we'll cover what to do when we want to decide which instructions to execute and show how to loop our code to do the same thing more than once. I'll give a brief introduction into how to use libraries in the Python code, and how to organize statements into functions. Finally I'll very briefly cover object oriented code organization.

Prepare for lift off

As with the previous section, once you have the basic system and Emacs, you are ready to start coding.

Engage thrusters

As you have seen, your programs normally start with the first line of code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required