Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Chip-Select Pins to Be Used by More than One Sensor. #383

Open
wants to merge 4 commits into
base: v3.01-dev
Choose a base branch
from

Conversation

ajquick
Copy link
Contributor

@ajquick ajquick commented Apr 21, 2020

This is a complement to 98740f1

This change creates a pin type of "chipSelect" which allows the chip-select pins to be shared among temperature sensors, where 1 single SPI chip can provide many distinct readings. At current time, this only applies to the CurrentLoopTemperatureSensor, however it will be useful in the future should other SPI chips be implemented that are capable of inputting multiple temperature probes.

Code will prevent the accidental re-use of chip-select pins between GPIO. Once assigned as a chip-select, it cannot be used as GPIO and vice-versa to prevent configuration errors.

@ajquick
Copy link
Contributor Author

ajquick commented Jun 18, 2020

Following up. This working as intended with no conflicts and is future proof for any new sensors that use SPI. Will it be added to the next release as we discussed on the forum?

abates-dentsu pushed a commit to abates-dentsu/RepRapFirmware that referenced this pull request Oct 1, 2021
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