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: Cedar Rapids, IA
Posts: 1,766

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.72 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 799
Thanked 682 Times in 437 Posts
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:

#define vssBit (1 << PINC0)
#define lbuttonBit (1 << PINC3)
#define mbuttonBit (1 << PINC4)
#define rbuttonBit (1 << PINC5)
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.
The Fiat Dakota

The Karen-mobile

The Red Sled
  Reply With Quote
The Following User Says Thank You to t vago For This Useful Post:
josemapiro (08-17-2013)