Coolquest, Inc. Home Products Support About Contact
cbold_logo_gif C++BOLD Example Parts Library cbold_logo_gif

<<  File View  >> Class View Parts Library Examples Home

 

// This File Generated by:  pt_to_h.exe
// Source File:             leds.pt
// Destination File:        leds.h
 
#ifndef _leds_h_
#define _leds_h_
 
// AR_OFF -- auto registration is not needed
 
// THIS FILE IS IN THE PUBLIC DOMAIN.
// IT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
// NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
class CP_DUAL_LED_RT : public TPart {     // dual right-angle PCB-mount LED
 
public:
  port   ANODE;       // AR_BUS(1,0)
  port   CATHODE;     // AR_BUS(1,0)
 
  CP_DUAL_LED_RT() {
    SetPackage( "DUAL_LED_RT_100", 4 );     // 100 mil pin spacing
    SetReferencePrefix( "D" );
  }
 
  virtual void Register() {
    regb( ANODE, 1, 0 );
          ANODE.AddPin( 1, "4" );
          ANODE.AddPin( 0, "2" );
    regb( CATHODE, 1, 0 );
          CATHODE.AddPin( 1, "3" );
          CATHODE.AddPin( 0, "1" );
  }
};
 
class CP_CHIP_LED : public TPart {     // surface mount chip LED
 
public:
  port   ANODE;       
  port   CATHODE;     
 
  CP_CHIP_LED() {
    SetPackage( "CHIP_LED_1206", 2 );     // 1206 package with cathode band
    SetReferencePrefix( "D" );
  }
 
  virtual void Register() {
    reg(  ANODE );
          ANODE.SetPin( "ANO" );
    reg(  CATHODE );
          CATHODE.SetPin( "CAT" );
  }
};
 
 
#endif

 

<<  File View  >> Class View Parts Library Examples Home

Legal Copyright © 2007 by Coolquest, Inc. Contact