Skip to content

Adding new command setPinUsedString(int index, const char *str)#2026

Open
MaxineMuster wants to merge 1 commit intoopenshwprojects:mainfrom
MaxineMuster:_usedPins
Open

Adding new command setPinUsedString(int index, const char *str)#2026
MaxineMuster wants to merge 1 commit intoopenshwprojects:mainfrom
MaxineMuster:_usedPins

Conversation

@MaxineMuster
Copy link
Copy Markdown
Contributor

If I use a driver without an own "IORole" selectable in config page, the usage is not shown there.

startdriver aht2x 10 11 3 4

will show:
Bildschirmfoto vom 2026-03-14 18-30-45

My idea is to show the usage by introducing a new command

setPinUsedString(int index, const char *str)

which will show the pin as "used" in cfg config page, even if there is no "IORole" for this driver.

Sample usage in AHT2x:

	setPinUsedString(g_softI2C.pin_clk, "AHT2X SCL");
	setPinUsedString(g_softI2C.pin_data, "AHT2X SDA");

which will show (for startdriver aht2x 10 11 3 4 as above)

"Pin 10 used by AHT2X SCL" / "Pin 11 used by AHT2X SDA"

Bildschirmfoto vom 2026-03-14 18-31-56

setPinUsedString(int index, const char *str)

which will show the pin as "used" in cfg config page, even if there is no "IORole" for this driver.

	setPinUsedString(10, "AHT2X SCL");

will show
	"Pin 10 used by AHT2X SCL"
for Pin 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant