// Filename : CounterBasic.ino #include <SPI.h> // ============================================================================================================== // Define Pins // ============================================================================================================== // Pins below are used by the Counter PCB and can not be changed #define Ready 3 // Define Ready Pin #define Trigger 2 // Define Trig Pin #define RFInput 4 // Define RF input Pin // ============================================================================================================== // Define Variables // ============================================================================================================== long Incomming_Data=0; // Counter Value // ============================================================================================================== // SETUP // ============================================================================================================== void setup(){ Serial.begin(9600); // Init serial pinMode(Trigger, OUTPUT); // Set Pin as Output digitalWrite(Trigger,LOW); // Set Pin Low pinMode(RFInput, OUTPUT); // Set Pin as Output digitalWrite(RFInput,LOW); // Set Pin Low pinMode(Ready, INPUT); // Set pin as Input delay(500); } // ============================================================================================================== // Loop // ============================================================================================================== void loop() { Incomming_Data=GetCounterValue(0); // Get Counter Value Low input //Incomming_Data=GetCounterValue(1); // Get Counter Value High input Serial.println(Incomming_Data,DEC); // Print out counter value delay(10); } |
// LCD_Display.ino #include <SPI.h> #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <Adafruit_PCD8544.h> #define PCF8574_I2C_Address 0x27 // Define the I2C address // ============================================================================================================== // Define LCD display 2x16 Char // ============================================================================================================== LiquidCrystal_I2C lcd(0x27, 16, 2); // LCD address to 0x27 // ============================================================================================================== // SETUP // ============================================================================================================== void setup(){ Wire.begin(); // Init I2c // LCD Initiering lcd.backlight(); lcd.init(); // initialize the lcd } // ============================================================================================================== // Loop // ============================================================================================================== void loop() { lcd.clear(); // Clear display lcd.setCursor(0, 0); // Position lcd.print("Hello World"); // Print delay(1000); } |
Download Arduino Software examples |
|
Example #1: CounterBasic.zip (2k)
Example #2: LCD_Display.zip (1k) Example #3: counterDisplay.zip (2k) Example #4: CounterNoDelay.zip (2k) Library: lcd library how to install |
Order a KIT
which will include all parts |
|||
This shield can be ordered in 3 different Configurations.
The reason is that some people wants the shield only, other wants to connect the display themselves using cables. Some people want the display assembled on the shield.
|
Waiting for contribution... |