I want to use extra leds in my project but I have troubles. I am using emsk em5d.
My problem is "How to make a pin in pmod 'high' or 'low' "
I can control LED 0~8 by following code :gpioRegs[SWPORTB_DR] = (unsigned int );
Can I just do what I do above to control the output of pmod ?
I think I should connect portA or portC to some pmods with mux and then control the output by "gpioRegs[SWPORTA_DR]" and "gpioRegs[SWPORTC_DR]"
but I 'm not sure if it is correct.
I am using metaware as my IDE.