void app_init() { ot_u8 i; ///Initialize the input buttons sub_button_init(); /// blink the LEDs i = 255; do { sub_led_cycle(++i); } while (i != 3); do { sub_led_cycle(--i); } while (i != 0); }
void app_init() { ot_u8 i; ///Default Startup Mode: Gateway. The button init may also alter this. opmode_devicemode = SYSMODE_GATEWAY; i = 255; do { sub_led_cycle(++i); } while (i != 3); do { sub_led_cycle(--i); } while (i != 0); ///Initialize the input buttons sub_button_init(); }
void app_init() { ot_u8 i; /// blink the LEDs i = 255; do { i++; sub_led_cycle(i); } while (i != 3); do { i--; sub_led_cycle(i); } while (i != 0); ///Initialize the input buttons sub_button_init(); //app_task = &app_task_null; }
/** Application Main <BR> * ==================================================================<BR> * */ void app_init() { /// 1. Blink the board LEDs to show that it is starting up. /// 2. Configure the board input button, which for this app will send a ping ot_u8 i; i=4; while (i != 0) { if (i&1) otapi_led1_on(); else otapi_led2_on(); platform_swdelay_ms(30); otapi_led2_off(); otapi_led1_off(); i--; } sub_button_init(); //If you have a chronometer applet, you can initialize it here. //The commented function below is for example purposes. //chron_init(TIM0A5); }
/** Application Main <BR> * ==================================================================<BR> * */ void app_init() { #if defined(BOARD_eZ430Chronos) /// Setup LCD #else /// 1. Blink the board LEDs to show that it is starting up. /// 2. Configure the board input button, which for this app will send a ping ot_u8 i; i=4; while (i != 0) { if (i&1) otapi_led1_on(); else otapi_led2_on(); platform_swdelay_ms(30); otapi_led2_off(); otapi_led1_off(); i--; } #endif sub_button_init(); }