-
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.
- Loading branch information
1 parent
f6eb137
commit e96d9b1
Showing
15 changed files
with
340 additions
and
15 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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
This is the first version of the DigOutBox controller. | ||
This is DigOutBox controller `gui_v0.2.0`. | ||
|
||
Please read the readme file for more information on how to set up and use this program. You can find it [here](https://github.com/galactic-forensics/DigOutBox/tree/main/controller). | ||
|
||
Fixes/enhancements in this minor version `gui_v0.1.1`: | ||
**Important**: This version of the GUI needs the DigOutBox firmware version `v0.2.0` or higher and requires CLI version `v0.2.0` or higher. | ||
|
||
Fixes/enhancements in this version: | ||
|
||
- Software lockout functionality has been added to the GUI. If software lockout is activated via the remote, the GUI will not be able to change the state of the channels. The GUI will still be able to read the state of the channels. | ||
- Extended help via tooltips |
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,5 @@ | ||
# Config files for "supported" boxes | ||
|
||
This folder contains config files for boxes that I actively support. | ||
You can generally ignore the content of this folder, | ||
unless I tell you otherwise. |
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,143 @@ | ||
/* | ||
* Configuration for DigOutBox. | ||
* This file sets the DigOutBox up for your specific system. | ||
*/ | ||
|
||
// ************************** | ||
// DIGOUTBOX HW CONFIGURATION | ||
// ************************** | ||
|
||
// Initial output for the following serial numbers: | ||
// - llnl001, gfl002 | ||
|
||
// Channels and remote control buttons | ||
const int numOfChannels = 16; | ||
const int numOfRemoteButtons = 10; | ||
|
||
// hard- and firmware versions | ||
const char fw_version[7] = "v0.2.0"; | ||
const char hw_version[7] = "v0.1.0"; | ||
|
||
|
||
// ********** | ||
// USER SETUP | ||
// ********** | ||
|
||
|
||
|
||
// Debug mode, additional comments aside from SCPI commands are sent over serial | ||
const bool debug = false; | ||
|
||
// Set delay in ms after valid RF press | ||
const int rf_delay = 500; | ||
|
||
// Interlock pin | ||
const int InterlockPin = 3; | ||
|
||
// Turn interlock mode on (true) or off (false) | ||
const bool EnableInterlock = true; | ||
|
||
// Software lockout time window (in ms) for double click (second click has to come after `rf_delay`!) | ||
const unsigned long SoftwareLockoutDoubleClickTime = 3000; | ||
|
||
// Associate remote buttons with channels, -1 for ALL OFF, -2 for software lockout toggling, -3 for None | ||
const int RFChannels[numOfRemoteButtons] = { | ||
0, | ||
1, | ||
2, | ||
3, | ||
4, | ||
5, | ||
8, | ||
9, | ||
-2, | ||
-1 | ||
}; | ||
|
||
// Define the "off-state" of all channels? | ||
// 0: LOW / 1: HIGH | ||
const int DOutInvert[numOfChannels] = { | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1 | ||
}; | ||
|
||
// ***************************** | ||
// BOARD & REMOTE SPECIFIC SETUP | ||
// ***************************** | ||
|
||
// Channels: A, B, C, D, E, F, G, H, 1, 2, 3, 4, 5, 6, 7, 8 | ||
|
||
// Setup of pins for the digital outputs | ||
const int DOut[numOfChannels] = { | ||
36, | ||
34, | ||
32, | ||
30, | ||
28, | ||
26, | ||
24, | ||
22, | ||
52, | ||
50, | ||
48, | ||
46, | ||
44, | ||
42, | ||
40, | ||
38 | ||
}; | ||
|
||
// Setup of pins for LEDs | ||
const int LedPins[numOfChannels] = { | ||
37, | ||
35, | ||
33, | ||
31, | ||
29, | ||
27, | ||
25, | ||
23, | ||
53, | ||
51, | ||
49, | ||
47, | ||
45, | ||
43, | ||
41, | ||
39 | ||
}; | ||
|
||
// Interrupt the RF Receiver is connected to (NOT pin number!) | ||
const int RFInterrupt = 0; // Which interrupt does the R receiver sit on? NOT pin! | ||
|
||
// Number of remotes | ||
const int numOfRemotes = 2; | ||
|
||
// RF codes for Remotes, number must be defined before | ||
const long RFRemoteCodes[numOfRemoteButtons][numOfRemotes] { | ||
{4543795, 349491}, | ||
{4543804, 349500}, | ||
{4543939, 349635}, | ||
{4543948, 349644}, | ||
{4544259, 349955}, | ||
{4544268, 349964}, | ||
{4545795, 351491}, | ||
{4545804, 351500}, | ||
{4551939, 357635}, | ||
{4551948, 357644} | ||
|
||
}; |
Binary file not shown.
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,143 @@ | ||
/* | ||
* Configuration for DigOutBox. | ||
* This file sets the DigOutBox up for your specific system. | ||
*/ | ||
|
||
// ************************** | ||
// DIGOUTBOX HW CONFIGURATION | ||
// ************************** | ||
|
||
// Initial output for the following serial numbers: | ||
// - llnl001, gfl002 | ||
|
||
// Channels and remote control buttons | ||
const int numOfChannels = 16; | ||
const int numOfRemoteButtons = 10; | ||
|
||
// hard- and firmware versions | ||
const char fw_version[7] = "v0.2.0"; | ||
const char hw_version[7] = "v0.1.0"; | ||
|
||
|
||
// ********** | ||
// USER SETUP | ||
// ********** | ||
|
||
|
||
|
||
// Debug mode, additional comments aside from SCPI commands are sent over serial | ||
const bool debug = false; | ||
|
||
// Set delay in ms after valid RF press | ||
const int rf_delay = 500; | ||
|
||
// Interlock pin | ||
const int InterlockPin = 3; | ||
|
||
// Turn interlock mode on (true) or off (false) | ||
const bool EnableInterlock = true; | ||
|
||
// Software lockout time window (in ms) for double click (second click has to come after `rf_delay`!) | ||
const unsigned long SoftwareLockoutDoubleClickTime = 3000; | ||
|
||
// Associate remote buttons with channels, -1 for ALL OFF, -2 for software lockout toggling, -3 for None | ||
const int RFChannels[numOfRemoteButtons] = { | ||
0, | ||
1, | ||
2, | ||
3, | ||
4, | ||
5, | ||
8, | ||
9, | ||
-2, | ||
-1 | ||
}; | ||
|
||
// Define the "off-state" of all channels? | ||
// 0: LOW / 1: HIGH | ||
const int DOutInvert[numOfChannels] = { | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1 | ||
}; | ||
|
||
// ***************************** | ||
// BOARD & REMOTE SPECIFIC SETUP | ||
// ***************************** | ||
|
||
// Channels: A, B, C, D, E, F, G, H, 1, 2, 3, 4, 5, 6, 7, 8 | ||
|
||
// Setup of pins for the digital outputs | ||
const int DOut[numOfChannels] = { | ||
36, | ||
34, | ||
32, | ||
30, | ||
28, | ||
26, | ||
24, | ||
22, | ||
52, | ||
50, | ||
48, | ||
46, | ||
44, | ||
42, | ||
40, | ||
38 | ||
}; | ||
|
||
// Setup of pins for LEDs | ||
const int LedPins[numOfChannels] = { | ||
37, | ||
35, | ||
33, | ||
31, | ||
29, | ||
27, | ||
25, | ||
23, | ||
53, | ||
51, | ||
49, | ||
47, | ||
45, | ||
43, | ||
41, | ||
39 | ||
}; | ||
|
||
// Interrupt the RF Receiver is connected to (NOT pin number!) | ||
const int RFInterrupt = 0; // Which interrupt does the R receiver sit on? NOT pin! | ||
|
||
// Number of remotes | ||
const int numOfRemotes = 2; | ||
|
||
// RF codes for Remotes, number must be defined before | ||
const long RFRemoteCodes[numOfRemoteButtons][numOfRemotes] { | ||
{4543795, 349491}, | ||
{4543804, 349500}, | ||
{4543939, 349635}, | ||
{4543948, 349644}, | ||
{4544259, 349955}, | ||
{4544268, 349964}, | ||
{4545795, 351491}, | ||
{4545804, 351500}, | ||
{4551939, 357635}, | ||
{4551948, 357644} | ||
|
||
}; |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.