Popular Functionality

Use arduino or stamp style libraries.

Arduino 
// set pin to output mode
pinMode      ( led1   , mode::output ) ;
// set the pin LOW
digitalWrite ( led1   , false        ) ;
Stamp 
  // set pin directions:
  // 7,6,5,4 to output  3,2,1,0 to input
  let pins.dirs = 0b11110000       ;
  // turn pins on
  let pins = 0b11111111            ;


See also: pins_dirs_library, Global words and bytes (w0, b1, b0), Arduino library, Project examples.