• 0
Sign in to follow this  
esso

Max32 Chipkit Push Button true pinout

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

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this