Available I/O PINS IN GR-KAEDE BOARD

How many numbers of  I/O pins available to program in GR-KAEDE board ?

There is no header pins in CN13 and CN9 (connector 13 and 9).

but, GR-KAEDE board pdf  shows it (CN13 & CN9) for connection of I/O. 

  • In reply to VASHI:

    so,GPIO pin number is not assigned to CN17 in our board , is it correct ?

  • In reply to Okamiya Yuuki:

    How Can I define a set of 8pins to an array of 8 pins.  

  • In reply to ADITYA:

    >so,GPIO pin number is not assigned to CN17 in our board , is it correct ?

    Your board has GPIO in CN17. You can use the pins with library version V1.13. In case of V1.12 or less, it is not available.

    >How Can I define a set of 8pins to an array of 8 pins.

    GR-KAEDE has no connector that has array of 8pins. But this kind of software is easy to implement. If you don't need the precise timing of read, you can use source like below. The below code is to read array of CN8 pins.

    #include <Arduino.h>

    uint8_t digitalReadArray(uint8_t cn);

    void setup(){

    Serial.begin(9600);

    for(int i = 0; i < 8; i++){

    pinMode(i, INPUT_PULLUP);

    }

    }

    void loop(){

       Serial.println(digitalReadArray(8), BIN);

    delay(500);

    }

    uint8_t digitalReadArray(uint8_t cn){

    uint8_t port = 0;

    switch (cn) {

    case 8:

    port = ((PORT3.PIDR.BYTE << 4) & 0xC0)|((PORT2.PIDR.BYTE) & 0x3C)|(PORT9.PIDR.BIT.B0 << 1)|(PORT9.PIDR.BIT.B2);

       break;

    default:

       break;

    }

    return port;

    }