All pastes #389854 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-11 00:35 UTC
rendered paste body
#include <p18cxxx.h>

#pragma config WDT = OFF

void delay (void)
{
	unsigned int i;
	for (i=0; i<10000; i++)
		;
}

void main (void)
{

	TRISB = 0;

	while (1) 
	{
  		PORTB = 0;

		delay ();

  		PORTB = 0x5A;

		delay ();
	}
    
}