From 2a24ade2d01c405601dc132505c35adb363ee284 Mon Sep 17 00:00:00 2001 From: martinbra Date: Thu, 30 Jul 2020 00:13:29 -0300 Subject: Adding keywords.txt for the Arduino lazy sintax highlighting. --- keywords.txt | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 keywords.txt (limited to 'keywords.txt') diff --git a/keywords.txt b/keywords.txt new file mode 100644 index 0000000..e8a758d --- /dev/null +++ b/keywords.txt @@ -0,0 +1,78 @@ +####################################### +# Syntax Coloring Map For ADS1115_WE +####################################### + +####################################### +# Datatypes (KEYWORD1) +####################################### + +ADS1115_WE KEYWORD1 + +####################################### +# Methods and Functions (KEYWORD2) +####################################### + +reset KEYWORD2 +init KEYWORD2 +setAlertPinMode KEYWORD2 +setAlertLatch KEYWORD2 +setAlertPol KEYWORD2 +setAlertModeAndLimit_V KEYWORD2 +setConvRate KEYWORD2 +setMeasureMode KEYWORD2 +setVoltageRange_mV KEYWORD2 +setCompareChannels KEYWORD2 +isBusy KEYWORD2 +startSingleMeasurement KEYWORD2 +getResult_V KEYWORD2 +getResult_mV KEYWORD2 +setAlertPinToConversionReady KEYWORD2 +clearAlert KEYWORD2 + +####################################### +# Constants (LITERAL1) +####################################### +ADS1115_CONV_REG LITERAL1 +ADS1115_CONFIG_REG LITERAL1 +ADS1115_LO_THRESH_REG LITERAL1 +ADS1115_HI_THRESH_REG LITERAL1 +ADS1115_REG_FACTOR LITERAL1 +ADS1115_REG_RESET_VAL LITERAL1 + +ADS1115_ASSERT_AFTER_1 LITERAL1 +ADS1115_ASSERT_AFTER_2 LITERAL1 +ADS1115_ASSERT_AFTER_4 LITERAL1 +ADS1115_DISABLE_ALERT LITERAL1 +ADS1115_LATCH_DISABLED LITERAL1 +ADS1115_LATCH_ENABLED LITERAL1 +ADS1115_ACT_LOW LITERAL1 +ADS1115_ACT_HIGH LITERAL1 +ADS1115_MAX_LIMIT LITERAL1 +ADS1115_WINDOW LITERAL1 +ADS1115_8_SPS LITERAL1 +ADS1115_16_SPS LITERAL1 +ADS1115_32_SPS LITERAL1 +ADS1115_64_SPS LITERAL1 +ADS1115_128_SPS LITERAL1 +ADS1115_250_SPS LITERAL1 +ADS1115_475_SPS LITERAL1 +ADS1115_860_SPS LITERAL1 +ADS1115_CONTINUOUS LITERAL1 +ADS1115_CONTINOUS LITERAL1 +ADS1115_SINGLE LITERAL1 +ADS1115_RANGE_6144 LITERAL1 +ADS1115_RANGE_4096 LITERAL1 +ADS1115_RANGE_2048 LITERAL1 +ADS1115_RANGE_1024 LITERAL1 +ADS1115_RANGE_0512 LITERAL1 +ADS1115_RANGE_0256 LITERAL1 +ADS1115_COMP_0_1 LITERAL1 +ADS1115_COMP_0_3 LITERAL1 +ADS1115_COMP_1_3 LITERAL1 +ADS1115_COMP_2_3 LITERAL1 +ADS1115_COMP_0_GND LITERAL1 +ADS1115_COMP_1_GND LITERAL1 +ADS1115_COMP_2_GND LITERAL1 +ADS1115_COMP_3_GND LITERAL1 +ADS1115_BUSY LITERAL1 +ADS1115_START_ISREADY LITERAL1 \ No newline at end of file -- cgit v1.2.3 From 6acc5d13a18b2117f21796e6f613be1f950ac4c4 Mon Sep 17 00:00:00 2001 From: martinbra Date: Thu, 30 Jul 2020 09:21:22 -0300 Subject: updating keywords for missing enum types. I had previously added only the enum values. --- keywords.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'keywords.txt') diff --git a/keywords.txt b/keywords.txt index e8a758d..8e76357 100644 --- a/keywords.txt +++ b/keywords.txt @@ -8,6 +8,18 @@ ADS1115_WE KEYWORD1 +# ENUM TYPES +ADS1115_COMP_QUE KEYWORD1 +ADS1115_LATCH KEYWORD1 +ADS1115_ALERT_POL KEYWORD1 +ADS1115_COMP_MODE KEYWORD1 +ADS1115_CONV_RATE KEYWORD1 +ADS1115_MEASURE_MODE KEYWORD1 +ADS1115_RANGE KEYWORD1 +ADS1115_MUX KEYWORD1 +ADS1115_STATUS_OR_START KEYWORD1 + + ####################################### # Methods and Functions (KEYWORD2) ####################################### @@ -39,6 +51,7 @@ ADS1115_HI_THRESH_REG LITERAL1 ADS1115_REG_FACTOR LITERAL1 ADS1115_REG_RESET_VAL LITERAL1 +# ENUM VALUES ADS1115_ASSERT_AFTER_1 LITERAL1 ADS1115_ASSERT_AFTER_2 LITERAL1 ADS1115_ASSERT_AFTER_4 LITERAL1 -- cgit v1.2.3