Keypad.h not working for ATMEGA32

Hi All,

I am using Atmega32 and trying to interface 4X4 keypad using library code is working fine when used "void setup() {} and void loop() {}" but unable to work with "int main() " loop....?

any help will be appreciated

CustomKeypad.ino (1.1 KB)

The magic word here is: "Arduino".
It is written for the Arduino environment and you ask a question on a Arduino forum.
You can see in the code that it uses the Arduino environment, it does not run without it: https://github.com/Chris--A/Keypad.

If you want the same for a non-arduino environment, then you have to rewrite it or find other code.

I'm a Arduino-enthusiast, so don't ask me how to rewrite it :stuck_out_tongue_closed_eyes:

Call "init()" and "initVariant()" at the beginning of main().

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.