-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in development (pull request #20)
Development Approved-by: Fred Kummer
- Loading branch information
Showing
5 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 [email protected] | ||
% | ||
% 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 [email protected] | ||
% | ||
% 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters