EXOOTR
Üye
- Katılım
- 19 Haz 2020
- Mesajlar
- 5
- Puanları
- 1
- Yaş
- 25
Lcd 'ye 1234 yazdırın.
Kodunuzu paylaşın. Devam ederiz.
C:
#include <16f877.h>
#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD
#use delay (clock=4000000)
#use fast_io(b)
#use fast_io(d)
#define LCD_ENABLE_PIN PIN_B0
#define LCD_RS_PIN PIN_B1
#define LCD_RW_PIN PIN_B2
#define LCD_DATA4 PIN_B4
#define LCD_DATA5 PIN_B5
#define LCD_DATA6 PIN_B6
#define LCD_DATA7 PIN_B7
#include <lcd.c>
void main ( )
{
setup_psp(PSP_DISABLED);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
set_tris_b(0x00);
lcd_init();
while(true)
{
printf(lcd_putc,"\fEXOOTR");
delay_ms(2000);
}
}