rendered paste body#include <16F628A.h>//#include <stdlib.h>#use delay(clock=4000000)#fuses INTRC_IO, NOWDT, PUT, BROWNOUT, NOLVP, NOMCLR/* Leds */#define ALL_LEDS 0xFF // 1111 1111#define NONE_LEDS 0x00 // 0000 0000#define CMB_1 0x0F // 0000 1111#define CMB_2 0x09 // 1001 0000#define CMB_3 0x33 // 0011 0011#define CMB_4 0x0C // 0011 0000#define CMB_5 0x30 // 0000 0011#define CMB_6 0xC3 // 1100 0011#define CMB_7 0xC0 // 1100 0000void write_letter(letra[3]) { output_b(letra[0]); delay_ms(5); output_b(letra[1]); delay_ms(10); output_b(letra[2]); delay_ms(5); output_b(NONE_LEDS); delay_ms(20); }void Splash() { int Pinos[8] = {PIN_B0, PIN_B1, PIN_B2, PIN_B3, PIN_B4, PIN_B5, PIN_B6, PIN_B7}; int i, x; for (x=0;x<10;++x) { for (i=0;i<8;++i) { output_high(Pinos[i]); delay_ms(20); } for (i=0;i<8;++i) { output_low(Pinos[i]); delay_ms(20); } }} void main() { int LETRA_P[3] = {ALL_LEDS, CMB_2, CMB_1}; int LETRA_A[3] = {ALL_LEDS, CMB_3, ALL_LEDS}; int LETRA_U[3] = {ALL_LEDS, CMB_7, ALL_LEDS}; int LETRA_L[3] = {ALL_LEDS, CMB_7, CMB_7}; int LETRA_O[3] = {ALL_LEDS, CMB_6, ALL_LEDS}; Splash(); output_b(ALL_LEDS); delay_ms(1000); output_b(NONE_LEDS); delay_ms(100); while (1){ write_letter(LETRA_P); write_letter(LETRA_A); write_letter(LETRA_U); write_letter(LETRA_L); write_letter(LETRA_O); }}