sample demo for peripheral on os x