diff --git a/iq/src/clients/RgbLedClient.m b/iq/src/clients/RgbLedClient.m new file mode 100644 index 0000000..dcddad6 --- /dev/null +++ b/iq/src/clients/RgbLedClient.m @@ -0,0 +1,35 @@ +% RgbLedClient allows the user to control the RGB LED on an LED board connected to a Vertiq module. +% +% Example: +% % Make a communication interface object +% com = MessageInterface('COM3', 115200); +% % Make a RgbLedClient object with obj_id 0 +% rgbLed = RgbLedClient('com', com); +% % Use the RgbLedClient object +% rgbLedRed = rgbLed.get('red'); +% +% Copyright 2024 Vertiq support@vertiq.co +% +% This file is part of the Vertiq Matlab API. +% +% This code is licensed under the MIT license (see LICENSE or https://opensource.org/licenses/MIT for details) +% +% Name: RgbLedClient.m +% Last update: 2024/08/05 by Fred Kummer +% Author: Fred Kummer +% Contributors: + +classdef RgbLedClient < Client + + methods + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %% Constructor, from JSON Parameters + + function obj = RgbLedClient(varargin) + args = varargin; + args = [args, {'filename', 'rgb_led.json'}]; + obj@Client(args{:}); + end + end +end \ No newline at end of file diff --git a/iq/src/clients/WhiteLedClient.m b/iq/src/clients/WhiteLedClient.m new file mode 100644 index 0000000..69c5396 --- /dev/null +++ b/iq/src/clients/WhiteLedClient.m @@ -0,0 +1,35 @@ +% WhiteLedClient allows the user to control the white LED on an LED board connected to a Vertiq module. +% +% Example: +% % Make a communication interface object +% com = MessageInterface('COM3', 115200); +% % Make a WhiteLedClient object with obj_id 0 +% whiteLed = WhiteLedClient('com', com); +% % Use the WhiteLedClient object +% whiteLedIntensity = whiteLed.get('intensity'); +% +% Copyright 2024 Vertiq support@vertiq.co +% +% This file is part of the Vertiq Matlab API. +% +% This code is licensed under the MIT license (see LICENSE or https://opensource.org/licenses/MIT for details) +% +% Name: WhiteLedClient.m +% Last update: 2024/08/05 by Fred Kummer +% Author: Fred Kummer +% Contributors: + +classdef WhiteLedClient < Client + + methods + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %% Constructor, from JSON Parameters + + function obj = WhiteLedClient(varargin) + args = varargin; + args = [args, {'filename', 'white_led.json'}]; + obj@Client(args{:}); + end + end +end \ No newline at end of file diff --git a/iq/src/clients/client_files b/iq/src/clients/client_files index 74284e5..a46762a 160000 --- a/iq/src/clients/client_files +++ b/iq/src/clients/client_files @@ -1 +1 @@ -Subproject commit 74284e59abbe86e2b6d629a3727163a28254fd70 +Subproject commit a46762a0cc58107e2bc48871aa08cdd6d9b1de72