void create_special_connect(){ serial_init(); create_write_byte(128); create_write_byte(132); create_power_led(250,254); atexit(create_disconnect); }
// returns the serial connections on XBC to normal communications over the USB port. // Turns of play LED and returns power light to green void create_disconnect() { create_play_led(0); create_power_led(0,255); create_stop(); g_create_connected=0; serial_quit(); }
void create_full() { CREATE_BUSY; create_write_byte(132); CREATE_FREE; create_power_led(227,255); }
void create_safe() { CREATE_BUSY; create_write_byte(131); CREATE_FREE; create_power_led(64,255); }
/* * Class: cbccore_low_Create * Method: create_power_led * Signature: (II)V */ JNIEXPORT void JNICALL Java_cbccore_low_Create_create_1power_1led(JNIEnv *env, jobject obj, jint color, jint brightness) { #ifdef CBC create_power_led(color, brightness); #else printf("Java_cbccore_low_Create_create_1power_1led stub\n"); #endif }
void FORTE_iCreatePowerLED::executeEvent(int pa_nEIID){ switch (pa_nEIID){ case scm_nEventREQID: create_power_led(COLOR(), BRITE()); sendOutputEvent(scm_nEventCNFID); break; } }
void create_full() {gc_mode=3; create_power_led(220,255);}
void create_safe() {gc_mode=2; create_power_led(140,255);}
// Same as above but for serial XBCs void create_disconnect_s() { create_play_led(0); create_power_led(0,255); }