Skip to content

Conversation

@jaenrig-ifx
Copy link
Member

  • Added machine.Pin class functions : on(), off(), value() and callable
  • Basic test with input and output wired together

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could already also test here what is returned when a pin is initialized as output and then you do pin.value(). This was a feedback from the MPY owners that in our port it is "undefined" while they would have expected a "1".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I will add it 👍. Actually, the PDL supports that (not sure about the psoc6 ....).

Copy link

@ramya-subramanyam ramya-subramanyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
@jaenrig-ifx jaenrig-ifx force-pushed the machine-pin-value-on-off branch from fbfbb71 to 63b6e51 Compare December 18, 2025 11:43
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
@jaenrig-ifx jaenrig-ifx merged commit b8cba82 into machine-pin Dec 18, 2025
24 of 25 checks passed
@jaenrig-ifx jaenrig-ifx deleted the machine-pin-value-on-off branch December 18, 2025 11:50
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.

4 participants