Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Scratch 1.4: Beginner's Guide

You're reading from   Scratch 1.4: Beginner's Guide Learn to program while creating interactive stories, games, and multimedia projects using Scratch

Arrow left icon
Product type Paperback
Published in Jul 2009
Publisher Packt
ISBN-13 9781847196767
Length 264 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Watch all sensor values


As we've seen throughout our projects, it can be helpful to watch the values associated with the PicoBoard sensors. In addition to selectively watching the sensor values, we can watch them all at one time.

From the Sensing palette, right-click on the sensor block and select the show ScratchBoard watcher option.

ScratchBoard was the predecessor to the PicoBoard. Selecting the ScratchBoard watcher places a monitor on the stage that shows all the sensors. Refer to the following screenshot:

As you look at the screenshot, you might think that some of the values are missing. The alligator clip sensors measure resistance, as the picture shows. However, the alligator clip sensors also report a true or false value to indicate when the clips touch. Why doesn't the ScratchBoard watcher show the Boolean value of the alligator clip sensors?

Have I led you enough yet? As you might guess, the Boolean values of the alligator clips are reported. We just have to interpret the true and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image