10 years, 5 months ago.

How to access Portpins?

Hi I am porting my programmed software to other hardware where I can use more than just the given pins from the mbed. Is it possible to use the other portpins that are not already defined as p1 .. p18 etc? How do I work with the port P2.0 and so on? Can I define them also as Pins and give them a common alias?

best wishes

gangben

1 Answer

10 years, 5 months ago.

You can access the pins by declaring them as P2_0 etc. The mbed.h includes those definitions.

Accepted Answer