-
I was wondering if it was possible to add the onboard LED and possibly the button on the Colorlight boards to a GPIO instance? In https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/colorlight_5a_75e.py I found that the IO pins are called "user_led_n" and "user_btn_n". But using this in LiteX-CNC in a pin definition instead of "j1:1" throws an error when building the firmware. I also tried "user_led:0" and "user_led0". I thought it would be nice to display a heartbeat with the onboard LED to show that the connection to LinuxCNC is working. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
I like the idea. This should be possible with the 5A-75X boards, if you use the HUB75HAT i'm not sure whether the pjns are exported. Next week I'll try it acces those pins on my 5A-75B and fix it if it is not working (I think I used it as heartbeat before). In any case, I will add some documentation on using these built-in functions. |
Beta Was this translation helpful? Give feedback.
-
I would be willing to test the watchdog solution. But I think the signal should be generated by LinuxCNC to show that the connection is working. When the FPGA outputs the signal it just shows that the FPGA is doing something. I tried to generate a heartbeat signal with HAL, but ran into some problems when using pwmgen:
Using siggen to generate a sine wave to get a nice pulsing works just fine:
Maybe this is useful to someone. |
Beta Was this translation helpful? Give feedback.
-
LED and button now work in |
Beta Was this translation helpful? Give feedback.
LED and button now work in
main
branch.