add load profiles, examples, update readme

add Get_Profiles and Set_Profile functions.

Now possible to load many parameters from a psd1 config file.

example config added

add Config Files section to readme
This commit is contained in:
onyx-and-iris
2022-01-24 20:01:12 +00:00
parent ff1839313f
commit 5b3a4e2b4f
5 changed files with 99 additions and 6 deletions

View File

@@ -6,7 +6,8 @@ class Remote {
[System.Collections.ArrayList]$bus
[System.Collections.ArrayList]$button
[PSCustomObject]$vban
$command
[Object]$command
[Object]$profiles
# Constructor
Remote ([String]$kind)
@@ -18,7 +19,8 @@ class Remote {
[void] Setup() {
if(Setup_DLL) {
Login -KIND $this.kind
$this.profiles = Get_Profiles
$this.strip = Make_Strips
$this.bus = Make_Buses
$this.button = Make_Buttons
@@ -32,6 +34,10 @@ class Remote {
Logout
}
[void] Set_Profile([String]$config) {
Set_Profile -DATA $this.profiles -CONF $config
}
[Single] Getter([String]$param) {
return Param_Get -PARAM $param
}