add code for demo board

add code for demo board (untested)