Skip to content

Commit

Permalink
added keywords.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
kapraran committed Sep 15, 2020
1 parent b6ecb36 commit a20538c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# classes
_FreqCountESP KEYWORD1

# instances
FreqCountESP KEYWORD2

# methods
begin KEYWORD2
read KEYWORD2
available KEYWORD2
end KEYWORD2
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ version=1.0.0
author=Nikos Kapraras <nikos@kapraran.dev>
maintainer=Nikos Kapraras <nikos@kapraran.dev>
sentence=A frequency counter library for esp32.
paragraph=It counts the numbers of pulses on a specified pin, during a fixed time frame.
paragraph=It counts the numbers of pulses on a specified pin during a fixed time frame.
category=Signal Input/Output
url=https://github.com/kapraran/FreqCountESP
8 changes: 4 additions & 4 deletions src/FreqCountESP.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef FreqCountESP_h
#define FreqCountESP_h
#ifndef kapraran_FreqCountESP_h
#define kapraran_FreqCountESP_h

#include <Arduino.h>

Expand All @@ -23,12 +23,12 @@ class _FreqCountESP
_FreqCountESP();
~_FreqCountESP();

void begin(uint8_t pin, uint16_t timerMs, uint8_t hwTimerId=0, uint8_t mode=INPUT);
void begin(uint8_t pin, uint16_t timerMs, uint8_t hwTimerId = 0, uint8_t mode = INPUT);
uint32_t read();
uint8_t available();
void end();
};

extern _FreqCountESP FreqCountESP;

#endif // FreqCountESP_h
#endif // kapraran_FreqCountESP_h

0 comments on commit a20538c

Please sign in to comment.