base
- Very basic, nothing-specific code that is called at every level of codedigital
- Processes for manipulating digital pinsplumbing
- The Plumbing libraryprinting
- Printing support for Plumbingpwm
servo
- Servo wrapper functionstwi
- occam implementation of TWI for the AVRwiring
- Occam bindings written to resemble the C-like wiring APIBV
- Convert a bit number to a bit valueINPUT
- Symbolic constant for setting data direction registers to inputLEVEL
- Symbolic constant for setting the level of a digital pinOUTPUT
- Symbolic constant for setting data direction registers to outputSERVO
- Servo control protocoldiv
- Number of divisions in the span between max - minfrequency
- Frequency of the servo pulsemax
- Maximum time active; in microsecondsmin
- Minimum time active; in microsecondspos
- Positition of the servo; This is what you will be using the most start
- Starts servo operationsstop
- Supposed to stop servo operationsusec
- Number of microseconds (greater than min ) the pulse to the servo will lastadc
- Reads the analog value of a given pinblink
- Drives a pin alternately LOW and HIGH on a fixed cyclebutton.press
- Watches for button presses on external level interrupt pinsclamp.byte
- Limits the range of values in a streamclamp.int
- Limits the range of values in a streamcrawl.byte
- Crawls a BYTE from 0 to high and back down (and back up, etc.)crawl.int
- Crawls an INT from 0 to high and back down (and back up, etc.)debounce
- Debounce a channeldelay
- Wait for a period of timedie
- Kills everything and reports an error back to the userdigital.input
- Read digital levels on external level interrupt pinsdigital.mode
- Sets the Data Direction Register of the given pin (sets the flow of data) to either INPUT or OUTPUTdigital.output
- Set digital levels on a pindigital.read
- Reads the digital state of a pindigital.write
- Sets the digital state of a pin to either HIGH or LOWheartbeat
- A parallel health monitorinvert.level
- Invert LEVELslevel.to.signal
- Convert a LEVEL to a SIGNALpin.toggle
- Drives a pin alternately LOW and HIGHpotentiometer.byte
- Reads from a potentiometer and maps the incoming value to a BYTEprinting.real32toa.helper
- Real 32 to array helper functionprinting.trimTrailing0s
- Helps the user trim the trailing 0s from an array of BYTEs by decrementing total by one for every consecutive '0' at the end of the BYTE arrayprinting.zeroArray
- Fills the passed array with the character '0'pwm
- Writes an analog value to a pinpwm16
- Writes an analog value to a pinreal32toa
- Converts n into a printable arrayserial.read.byte
- Reads a BYTE from the given pinserial.setup
- Begins serial operations on the given board pinserial.write.byte
- Write a BYTE to the given pinserial.write.int
- Write an INT to the serial port in hexserial.write.int32
- Write an INT32 to the serial port in hexserial.write.newline
- Write a newlineserial.write.real32
- Write a REAL32 to the serial port in decimal formserial.write.string
- Write a string to the serial portservo
- General servo controlsimple.servo
- Stepping-stone servo control processtick
- Generates a consistent stream of SIGNALstoggle
- Outputs an alternating stream of LEVEL values