enter the skeleton

We'll start with the following skeleton code.

20100220-occam1

You'll need the standard #INCLUDE "plumbing.module". Type this code into your text editor (this is so you get practice typing occam-π), and it should compile as-is.

QUESTIONS

What do the following PROCs do?

  1. beginAnalog()
  2. analogWrite()
  3. delay()

  4. What does pwm.cycle() do? What is the equivalent of a "replicated SEQ" in other programming languages?

  5. What is the range of values that can come in on the adc channel?

You can refer to the Plumbing and Wiring occamdoc for support.

Creative Commons License This work is licensed under a CC BY-SA 3.0 License.