<< return to Pixycam.com

Diagram question

Hi,
In the diagram for PIXY CAM 2 on Github, the WHITE_LED is connected to pin P2_9.

In the file libpixy_m4\led.cpp line 259 the ouput is programmed:
LPC_GPIO_PORT->PIN[1] |= 1<<10;

which in my understanding is pin P1_10. (CAM Y3)
How does that fit?

thanks in advance
regards
Poul

Hello,
I believe the LPC4300 port mappings are made with some kind of output mux, so the physical pin names and gpio port numbers don’t correspond with each other, unless you make them correspond.

Check out this file:


scu_pinmux() makes the mappings.

Edward