O'Reilly logo

Electronics All-in-One For Dummies, UK Edition by Doug Lowe, Dickon Ross

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

Chapter 2

Programming in PBASIC

In This Chapter

arrow Discovering the essentials of the PBASIC language

arrow Working with variables and constants

arrow Adding IF-THEN-ELSE logic to your programs

arrow Looping with DO and FOR loops

This chapter is about the exciting but somewhat intimidating topic of computer programming. Specifically, it covers programming the BASIC Stamp microprocessor (which we introduce in Chapter 1 of this minibook) using its built-in programming language called PBASIC.

This journey into programming is fascinating but may seem rocky at times, because you need to grasp certain important concepts, which can be difficult to get your head around. But trust us: programming a BASIC Stamp microprocessor isn’t rocket science. You can and will get to grips with the tricky ideas, and when you do your imagination is the only limit to what you can get a BASIC Stamp microprocessor to do.

So grab your thinking cap, check in the mirror that it fits and you look suitably sharp, and get started.

tip.eps PBASIC ...

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