pico-ice
RaspberryPi Pico with an iCE40 FPGA
|
RGB LEDs. More...
Functions | |
void | ice_led_init (void) |
Initialise the GPIO pins for use with open-drain LED control, shared with the iCE40. | |
void | ice_led_red (bool state) |
Control the red LED. | |
void | ice_led_green (bool state) |
Control the green LED. | |
void | ice_led_blue (bool state) |
Control the blue LED. | |
RGB LEDs.
They are active-low and shared with the iCE40:
A line pulled high does not give consitent result, they are controlled with high-impedance or pulled-down.
If the GPIO LEDs do not turn on.
Unlike the Raspberry Pi Pico board, which has a green LED attached to the GPIO pin 25, the pico-ice has three LEDs attached to the RP2040 GPIO13 (red), GPIO12 (green), GPIO15 (blue).
Moreover, the leds are "active-low", so you would need to turn their pin down for them to be turned on.
Finally, the FPGA is also connected to these LEDs.
void ice_led_blue | ( | bool | state | ) |
Control the blue LED.
state | Bright if true, dark if false. |
void ice_led_green | ( | bool | state | ) |
Control the green LED.
state | Bright if true, dark if false. |
void ice_led_red | ( | bool | state | ) |
Control the red LED.
state | Bright if true, dark if false. |