Arduino static variable declaration with no datatype? [closed]
Arduino static variable declaration with no datatype? [closed] I am quite new to Arduino and try to understand the following variable declaration: static btn_state_t nav_btn, joy_btn; First, I would expect a datatype like integer or float or the like after "static". I only found one answer that the variable then would be assigned a default type? Second, I don't understand the following comma-separated "names" or other variables. In the programm, it looks like they can be both used for "btn_state_t". I couldn't find an answer to my question so far...or maybe someone can give me a hint on what search-words to look for? Thanks Steve for the profound and complete answer below! Compleatly answered my question and his guessing was right ...that even with quite some search, I didn't find that datatype and "typedef" was the right codeword. So solved for me. Please clarify your specific problem or add additional details to highlight exactly wh...