MCUFRIEND TFT SCREEN

Hi all, I am building a Geiger Counter using a RHELECTRONICS kit, the problem I have is that the Arduino Uno only has pin 2 for counting the interrupt's from the geiger circuit, but the tft shield uses pin 2 to LCD_02 on the shield, is it possible to assign a different pin in the software , I would like to assign LCD_02 to Pin 11 or 12 and use a jumper cable so pin 2 is free

I am using the ADAFRUIT LIB

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_TFTLCD.h> // Hardware-specific library

// The control pins for the LCD can be assigned to any digital or
// analog pins...but we'll use the analog pins as this allows us to
// double up the pins with the touch screen (see the TFT paint example).
#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LCD_RD A0 // LCD Read goes to Analog 0

#define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin

// When using the BREAKOUT BOARD only, use these 8 data lines to the LCD:
// For the Arduino Uno, Duemilanove, Diecimila, etc.:
//   D0 connects to digital pin 8  (Notice these are
//   D1 connects to digital pin 9   NOT in order!)
//   D2 connects to digital pin 2
//   D3 connects to digital pin 3
//   D4 connects to digital pin 4
//   D5 connects to digital pin 5
//   D6 connects to digital pin 6
//   D7 connects to digital pin 7
// For the Arduino Mega, use digital pins 22 through 29
// (on the 2-row header at the end of the board).

// Assign human-readable names to some common 16-bit color values:
#define	BLACK   0x0000
#define	BLUE    0x001F
#define	RED     0xF800
#define	GREEN   0x07E0
#define CYAN    0x07FF
#define MAGENTA 0xF81F
#define YELLOW  0xFFE0
#define WHITE   0xFFFF

Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
// If using the shield, all control and data lines are fixed, and
// a simpler declaration can optionally be used:
// Adafruit_TFTLCD tft;

Hello,

as far as I understand https://www.arduino.cc/en/Reference/AttachInterrupt, the Uno does have 2 Interrupt-Inputs - so you could use Pin 3 for the Geiger-Müller Counter.

Best regards,
Christoph

psman:
Hello,

as far as I understand attachInterrupt() - Arduino Reference, the Uno does have 2 Interrupt-Inputs - so you could use Pin 3 for the Geiger-Müller Counter.

Best regards,
Christoph

Thanks Christoph, Sorry i should have said, pin 3 is being used by the shield also
Dig 11, 12 , 13 are the only free pins left on the board, they are free because i wont be using the built in SD.
I'm trying to figure out if i can just assign the LCD_02 to Digital pin 11 or 12 so that later in the code I can use Pin 2 to count the interrupts from the secondary geiger circuit

I have used this library to attach interrupts to any pin:

http://playground.arduino.cc/Main/PinChangeInt

So you could then use pins other than 2 or 3, e.g. 12.

To test you can try the example:

url=http://playground.arduino.cc/Main/PinChangeIntExample

Which conveniently counts pulses!

Thanks rowboteer, that seems to do the trick.