-
Notifications
You must be signed in to change notification settings - Fork 2
/
keywords.txt
67 lines (62 loc) · 1.69 KB
/
keywords.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Arduino Switch Library for configuring different switch type wired
# in common circuit schemes.
#
# Ron Bentley, Stafford (UK), March 2021,
# updates:
# Sept 2022, version 3.00
# addition of functions 'is_button_pressed' (overloaded) and
# 'reset_switch' and 'reset_switches'
# Sept 2022, version 3.01
# change of library variables to unsigned declarations, generally,
# eg byte to uint8_t, long unsigned int to uint32_t, etc
#
# This example and code is in the public domain and
# may be used without restriction and without warranty.
#
# data and data structures
Switches KEYWORD1
switches KEYWORD2
switch_configured KEYWORD2
switch_type KEYWORD2
switch_pin KEYWORD2
switch_circuit_type KEYWORD2
switch_pending KEYWORD2
switch_db_start KEYWORD2
switch_on_value KEYWORD2
switch_status KEYWORD2
switch_out_pin KEYWORD2
switch_out_pin_status KEYWORD2
last_switched_id KEYWORD2
# private variables
_debounce KEYWORD2
_max_switches KEYWORD2
_num_entries KEYWORD2
# macro definitions
switched LITERAL1
bad_params LITERAL1
add_failure LITERAL1
link_success LITERAL1
link_failure LITERAL1
on LITERAL1
configured LITERAL1
button_switch LITERAL1
toggle_switch LITERAL1
not_used LITERAL1
circuit_C1 LITERAL1
circuit_C2 LITERAL1
circuit_C3 LITERAL1
INPUT_PULLDOWN LITERAL1
none_switched LITERAL1
# functions
read_switch KEYWORD2
read_toggle_switch KEYWORD2
read_button_switch KEYWORD2
add_switch KEYWORD2
link_switch_to_output KEYWORD2
num_free_switch_slots KEYWORD2
set_debounce KEYWORD2
reset_switch KEYWORD2
reset_switches KEYWORD2
button_is_pressed KEYWORD2
print_switch KEYWORD2
print_switches KEYWORD2