BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
df6d296
Branches
Tags
master
mips_sys
fw
main.c
implemented LCD peripheral
Stefan Schuermans
commited
df6d296
at 2012-02-12 15:31:45
main.c
Blame
History
Raw
#include "cyc_cnt.h" #include "lcd.h" #include "leds.h" volatile int data[100]; void delay(void) { cyc_cnt_delay_ms(200); } int main() { unsigned int i; for (i = 0; i < sizeof(data) / sizeof(data[0]); ++i) data[i] = i; lcd_init(); while (1) { for (i = 0x1; i < 0x80; i <<= 1) { leds_set_state(i); delay(); } for (i = 0x80; i > 0x1; i >>= 1) { leds_set_state(i); delay(); } } return 0; }