Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Available I/O PINS IN GR-KAEDE BOARD

$
0
0
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; }

Viewing all articles
Browse latest Browse all 59170

Trending Articles