Page 106 - Build Your Own Quadcopter_ Power Up Your Designs with the Parallax Elev-8
P. 106
Chapter 4: Prog ramming the P arallax Propeller Chip 85
Figure 4.13 FastBlinker1 Full Source view.
following this approach, you will deal in units of milliseconds versus number of clock cycles,
which will eliminate the requirement that you know the actual system clock speed in order
to set actual delays and/or durations. I will demonstrate this approach by using a modified
version of FastBlinker1 that I renamed PreciseBlinker1. Figure 4.14 is a screenshot of the Full
Source view for PreciseBlinker1.
Figure 4.14 PreciseBlinker1 Full Source view.