Saturday, April 17, 2021

Development - LED Control #2

 After discussing the GUI with a friend who is much smarter than me, this is where I ended up.  I actually like this much better than the old layout.  There is still some minor GUI tweaking to be had as I test multiple devices, but in general it is done.

 

Here we can still see the status of each LED, both the state and the brightness percentage.  By touching or tapping the state, a standard Android Combo Box with Radio Buttons appears on the screen with the choices, OFF, STEADY, BURST, CYCLE and PULSE.  Choosing one will change the state of the LED and use the associated brightness value for STEADY, BURST and CYCLE.  The brightness value is a simple SPIN box.  Tapping either the left or right arrow will decrease or increase the count by 10, respectively.  Pressing the number will bring up the native number pad where any number between 0 and 100 can be entered.  

This layout provides to the user the necessary current state of the LEDs, while providing an intuitive method for them to change the LED state and the brightness percentage.  A bonus to this was a much more elegant code solution in how this is handled.  Which then makes it much easier to adapt this GUI to the original Brick Controller.  Another goal I have for this implementation of the APP.

Next step will be to implement something similar in the PC.  I believe that commonality in the Android APP and the PC makes the transition from one to the other and back that much easier.  While there will always be operations that can only be done on the PC (firmware update for one), commonality as much as possible will always be the goal.



No comments:

Post a Comment