Tim 'mithro' Ansell
Tim 'mithro' Ansell
This demo would be good to get working -> https://github.com/sowbug/weblight
https://github.com/im-tomu/tomu-samples/pull/10
@xobs any thoughts? @gregdavill - I would probably suggest spending your time on looking into [LUNA](https://luna.readthedocs.io/en/latest/) rather than ValentyUSB.
It should have a compatible EPTri interface - https://luna.readthedocs.io/en/latest/gateware/endpoint.html#usb2-interfaces-eptri-components.
There is also http://wiki.openmoko.org/wiki/USB_Product_IDs too.
Important information seems to be.... ``` rgb_write(r, LEDDPWRG); // Red rgb_write(g, LEDDPWRB); // Green rgb_write(b, LEDDPWRR); // Blue ``` ``` o_PWMOUT0 = ledd_value[0], o_PWMOUT1 = ledd_value[1], o_PWMOUT2 = ledd_value[2], ```...
Your doing the remapping between the SB_LEDDA_IP PWM outputs and the SB_RGBA_DRV inputs if I understand correctly?
Something like; ```python rgba_drv_pins = { 'pin 1': 'RGB0', 'pin 2': 'RGB1', 'pin 3': 'RGB2', } r_led = platform.request('user_led_r') self.comb += [ If(csr.storage[RED], platform.get_pin(rgba_drv_pins[r_led.pin]).eq(ledda_ip.pwmout0), ...) ] g_led = platform.request('user_led_g') self.comb...
Weren't you the person who showed that litex-buildenv works under fine under "Base On Windows" as described here -> https://github.com/timvideos/litex-buildenv/wiki/Bash-On-Windows I'm pretty sure the issue around the C compiler has...