The ProDVX APPC-10SLB devices comes with a surround RGB LED bar. The RGB LED bar can be signalled with the below android code. You can easily pass your desired hex color codes in the below code to lighten up the led bar.
1. Prodvx APPC-10SLBe
Prodvx APPC-10SLB LED Bar contains 52 LED frame and 2-side LED bar. It is an USB to UART interface module and it support display Red/Green/Blue full color light.
The LED bar can be controlled through broadcasting in android.
import android.content.Intent; import android.graphics.Color; public class MainActivity extends Activity { private static final String ACTION_CHANGE_LED_COLOR = "action.CHANGE_LED_COLOR"; public void changeLedColor() { // pass your desired hex color code String hex = "#009900"; // green color try { Intent intent = new Intent(ACTION_CHANGE_LED_COLOR); intent.putExtra("color", (127 & 0xff) << 24 | (Color.red(Color.parseColor(hex)) & 0xff) << 16 | (Color.green(Color.parseColor(hex)) & 0xff) << 8 | (Color.blue(Color.parseColor(hex)) & 0xff)); getBaseContext().sendBroadcast(intent); } catch (Exception e) { } } }
2. Prodvx APPC-10x
The LED bar in APPC-10x series do not support broadcasting and can only be controlled through android serial port libraries.
import android_serialport_api.*; public class MainActivity extends Activity { // pass your desired hex color code String hex = "#009900"; // green color public void changeLedColor() { String r = hex.substring(1, 3); String g = hex.substring(3, 5); String b = hex.substring(5, 7); try { LedActivity ledActivity = new LedActivity(); ledActivity.StartLEDCustomColor(r, g, b); } catch (Exception e) { } } }
Download android serialport api files
To get more customized solution, contact here.