Jump to content

MIOS32_BOARD_J10_PinGet(8-15) not working


Phatline
 Share

Recommended Posts

after initialize:

 void APP_Init(void){
  int pin;   for(pin=0; pin<16; ++pin){     MIOS32_BOARD_J10_PinInit(pin, MIOS32_BOARD_PIN_MODE_INPUT_PU);}   }

getting pin 0-7 is workin ok, but 8-15 give me no output:

void APP_SRIO_ServicePrepare(void)  {
            // get GPIO-Pins
            u8 x = 0;
            for(x=0; x<16; x++) {
                 
            if(MIOS32_BOARD_J10_PinGet(x) != flag.j10PinState[x]) {
                 
                MIOS32_MIDI_SendDebugMessage("pin: %d value: %d", x, MIOS32_BOARD_J10_PinGet(x));
                flag.j10PinState[x] = MIOS32_BOARD_J10_PinGet(x);
              } }

 

why?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...