Jump to content
  • 0

Max32 Chipkit Push Button true pinout


esso

Question

Hi Everyone,

I am trying to figure out what is the pinout for the push buttoms,

I used 4,33,36,37, and did not work, I also used 4, 78, 80 and 81 due to a reference from my professor and stiil

did not work

If you guys can help me out will be great

thanks

ESSo

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Sorry for the confusion, I am referring to the Basic shield I/O that I attach to the Max32. I have the Manual and Schematics, but those pins are not correct.

we tried the same pin-out configuration on different boards

Thanks

Link to comment
Share on other sites

Hi @esso,

I just tried using the MAX32 with the Basic IO Shield on the Arduino IDE to test out the buttons and it worked for me successfully using pins 4, 78, 80, and 81 for buttons 1, 2, 3, and 4 respectively.

Here is the code that I used in the Arduino IDE.

Spoiler

void setup() {
  // put your setup code here, to run once:
  pinMode(4, INPUT);
  pinMode(78, INPUT);
  pinMode(80, INPUT);
  pinMode(81, INPUT);
  Serial.begin(9600);
  Serial.println("testing some buttons");
}

void loop() {
  // put your main code here, to run repeatedly:
  if(digitalRead(4)==HIGH){
    Serial.println("BTN1 is presesd");
  }

  if(digitalRead(78)==HIGH){
    Serial.println("BTN2 is presesd");
  }

  if(digitalRead(80)==HIGH){
    Serial.println("BTN3 is presesd");
  }

  if(digitalRead(81)==HIGH){
    Serial.println("BTN4 is presesd");
  }

  delay(250);

}

 

Let me know if you have any additional questions.

Thanks,
JColvin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...