recipe name filter

This commit is contained in:
meelstorm
2025-07-28 09:52:29 +02:00
parent 71d59df0cd
commit f80b275ad8
58 changed files with 4066 additions and 79 deletions

View File

@@ -54,7 +54,7 @@ namespace VisionBuilder.UI.IOCommander.Windows
for (int i = 0; i < 20; i++)
{
int pinNumber = i + 1; // Pins are 1-indexed
int pinNumber = i; // Pins are 1-indexed
_checkBoxes[i] = new CheckBox
{
Text = pinNumber.ToString(),
@@ -78,7 +78,7 @@ namespace VisionBuilder.UI.IOCommander.Windows
bool state = checkBox.Checked;
// Update the BitArray
PinState.Set(pin - 1, state); // Adjust for 0-based indexing in BitArray
PinState.Set(pin, state); // Adjust for 0-based indexing in BitArray
// Trigger the event
OnPinChanged?.Invoke(pin, state);

View File

@@ -43,7 +43,7 @@ namespace VisionBuilder.UI.IOCommander.Windows
this.MinimizeBox = false;
this.MaximizeBox = false;
// Create pin indicators for input pins 1-20 and output pins 1-20 (20 rows, 2 columns)
// Create pin indicators for input pins 0-19 and output pins 0-19 (20 rows, 2 columns)
int pinSize = 18;
int spacing = 2;
int centerX = 140; // Center the graphics in the wider form
@@ -55,8 +55,8 @@ namespace VisionBuilder.UI.IOCommander.Windows
for (int row = 0; row < 20; row++)
{
int inputPin = row + 1; // Input pins numbered 1-20
int outputPin = row + 1; // Output pins numbered 1-20
int inputPin = row; // Input pins numbered 0-19
int outputPin = row; // Output pins numbered 0-19
// Left column (input pins)
var leftIndicator = new PinIndicator(inputPin, true)