Quote:
Originally Posted by josemapiro
The value of "# define vssBit (1 << 0)" is not the bit value of the pin?
Or put the value of the pin?
|
Those lines should really read:
Code:
#define vssBit (1 << PINC0)
#define lbuttonBit (1 << PINC3)
#define mbuttonBit (1 << PINC4)
#define rbuttonBit (1 << PINC5)
Quote:
Originally Posted by josemapiro
As shown in the video, the program starts fine, but then when I trigger any of the buttons does a reset type, do not know what causes it.
|
It sounds like you might have connected your buttons by mistake to the reset pin. Somebody who is more familiar with the Arduino Mega may be able to verify that.