simplify main.c and adjust to my own dev board