User Tools

Site Tools


raspberrypi:wiringpi:event_count

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
raspberrypi:wiringpi:event_count [2017/01/31 22:41] – created aistisraspberrypi:wiringpi:event_count [2017/01/31 22:42] (current) – aistis
Line 1: Line 1:
 Susiskaičiuoja kiek kartų įvykis atsitiko per sekundę Susiskaičiuoja kiek kartų įvykis atsitiko per sekundę
  
-<code>+<code c>
 #include <stdio.h> #include <stdio.h>
 #include <string.h> #include <string.h>
Line 8: Line 8:
 #include <wiringPi.h> #include <wiringPi.h>
  
-#define BUTTON_PIN 2 // Use GPIO Pin 17+#define BUTTON_PIN 2 // Use GPIO Pin 
  
 volatile int eventCounter = 0; // the event counter volatile int eventCounter = 0; // the event counter
raspberrypi/wiringpi/event_count.1485895311.txt.gz · Last modified: by aistis