1 Commits
Author SHA1 Message Date
Yilin Sun e00e244102 sys: rt-thread: Check for U8X8_PIN_NONE.
RT-Thread use signed value for its pin numbers, while using -1 for
PIN_NONE. So when using U8X8_PIN_NONE, RT-Thread will incorrectly
interpret the pin as positive integer (255).

This patch wraps rt_pin_xxx functions to detect this condition.
It does limit the selectable pin ranges to 0-255, however it should
be enough for now.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-09-12 16:21:22 +08:00