من این برنامه رو با sam-prog روی arm7x256 پروگرام کردم ولی فقط چراغ lcd روشنه همین!آیا برنامه ی زیر مشکلی داره؟
#include <AT91SAM7X256.H>
#include <lib_AT91SAM7X256.H>
#include "delay.h"
#define LCD_PORT_A
#define LCD_RS 0
#define LCD_E 1
#define LCD_DB4 4
#define LCD_DB5 5
#define LCD_DB6 6
#define LCD_DB7 7
#include "lcd.h"
int main (void) {
lcd_init();
lcd_clear();
cursor_on();
lcd_gotoxy(1,0);
lcd_putsf("Hello World"
;
cursor_off();
while(1);
}
#include <AT91SAM7X256.H>
#include <lib_AT91SAM7X256.H>
#include "delay.h"
#define LCD_PORT_A
#define LCD_RS 0
#define LCD_E 1
#define LCD_DB4 4
#define LCD_DB5 5
#define LCD_DB6 6
#define LCD_DB7 7
#include "lcd.h"
int main (void) {
lcd_init();
lcd_clear();
cursor_on();
lcd_gotoxy(1,0);
lcd_putsf("Hello World"

cursor_off();
while(1);
}
دیدگاه