View Single Post
Old 08-16-2013, 09:34 PM   #5 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 828
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by josemapiro View Post
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 View Post
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.
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
josemapiro (08-17-2013)