esso Posted January 24, 2018 Share Posted January 24, 2018 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 More sharing options...
JColvin Posted January 24, 2018 Share Posted January 24, 2018 Hi @esso, I'm a little confused; the Max32 does not have any user push buttons aside from the reset button. Are you perhaps referring to a different board? Thank you, JColvin Link to comment Share on other sites More sharing options...
esso Posted January 26, 2018 Author Share Posted January 26, 2018 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 More sharing options...
JColvin Posted January 26, 2018 Share Posted January 26, 2018 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 More sharing options...
Question
esso
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
Archived
This topic is now archived and is closed to further replies.