View Single Post
Old 04-04-2014, 11:54 AM   #319 (permalink)
modrcm
EcoModding Lurker
 
Join Date: Apr 2014
Location: Spain
Posts: 12

civic modrcm - '96 Honda Civic DX
Thanks: 4
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by josemapiro View Post
I'm using the Arduino Mega with the A11, A12 and A13 pin and it has worked flawlessly, not to function may have a fault on the board. Seeks to create a simple program just to test the pins.
The other system with the resistances, I'm not using now, but I've also tested it before and it worked.

Eu estou a utilizar o arduino mega com os pinos A11, A12 e A13 e tem funcionado sem falhas, para não lhe funcionar pode ter alguma avaria na placa. Procure criar um programa simples só para testar os pinos.
O outro sistema com as resistencias, não o estou a utilizar agora, mas já testei antes e tambem funcionou.
I tried doing a small program to turn on a LED with buttons and working properly: S

have seen a very well this?

Code:
#ifdef TinkerkitLCDmodule

const uint8_t vssBit = 				(1 << PINB1);

#else

const uint8_t vssBit = 				(1 << PINC0);

#endif



#ifdef useLegacyButtons

#ifdef ArduinoMega2560

const uint8_t lbuttonBit = 			(1 << PINK3);

const uint8_t mbuttonBit = 			(1 << PINK4);

const uint8_t rbuttonBit = 			(1 << PINK5);

const uint8_t longButtonBit = 		(1 << PINK6); // PINK6 isn't being used for anything right now

#else

const uint8_t lbuttonBit = 			(1 << PINC3);

const uint8_t mbuttonBit = 			(1 << PINC4);

const uint8_t rbuttonBit = 			(1 << PINC5);

const uint8_t longButtonBit = 		(1 << PINC6); // PINC6 is used as the RESET pin, so this value is safe to use for long-press signalling

#endif
  Reply With Quote