pico-ice
RaspberryPi Pico with an iCE40 FPGA
Ice_led

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. More...
 
void ice_led_green (bool state)
 Control the green LED. More...
 
void ice_led_blue (bool state)
 Control the blue LED. More...
 

Detailed Description

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.

Troubleshooting

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.

Function Documentation

◆ ice_led_blue()

void ice_led_blue ( bool  state)

Control the blue LED.

Parameters
stateBright if true, dark if false.

◆ ice_led_green()

void ice_led_green ( bool  state)

Control the green LED.

Parameters
stateBright if true, dark if false.

◆ ice_led_red()

void ice_led_red ( bool  state)

Control the red LED.

Parameters
stateBright if true, dark if false.