Hi Jason,
Yes, as well as being able to declare interfaces using the DIP pin numbers which are marked on the pinout card the the purpose you are using, e.g.
Serial uart(p13,p14);
Or you can do as you say and use DIP pins that are not marked for the purpose, e.g.
Serial uart(p26,p25);
In this case, note that you are actually using UART1 of the LPC1768, which is already on p13,p14. Using p26,p25 is just an alternate mapping, rather than an extra UART.
This is the same with LED1-4, which can also be used as PwmOut (oh yeah, dim those LED's Knight Rider Style :-)
The last thing to note is that you can also construct objects using the LPC port/pin numbers, so for the example you gave you could equally do this :
Serial uart (P2_0,P2_1);
This isnt that much use when you can already just use the DIP pin numbers, but if you were to move your design to a bare LPC1768 on your own PCB, it means that you can still use the library objects on pins that are not supported by the DIP form factor of the mbed.
Hope that helps,
Chris
Hey guys im running short on serial pins, and wondering if p26(tx),p25(rx) can be used as well.
P26 -> P2.0/PWM1.1/TXD1/TRACECLK
P25 -> P2.1/PWM1.2/RXD1
As I am using p13 -> P0.15/TXD1/SCK0/SCK with SPI
Cheers Jase