Skip to content

Commit 5b95d73

Browse files
unknownfischermoseley
authored and
unknown
committed
Updated CI config and arduino library spec files
Should be good to go for initial release! Co-Authored-By: Fischer Moseley <[email protected]>
1 parent 80358b4 commit 5b95d73

File tree

3 files changed

+72
-3
lines changed

3 files changed

+72
-3
lines changed

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,47 @@ script:
2929
#compile for arduino AVR
3030
- echo Compiling for Arduino AVR...
3131
- arduino --verify --board arduino:avr:uno $PWD/examples/Example1_PrintButtonStatus/Example1_PrintButtonStatus.ino
32+
- arduino --verify --board arduino:avr:uno $PWD/examples/Example2_LightWhenPressed/Example2_LightWhenPressed.ino
33+
- arduino --verify --board arduino:avr:uno $PWD/examples/Example3_PulseWhenPressed/Example3_PulseWhenPressed.ino
34+
- arduino --verify --board arduino:avr:uno $PWD/examples/Example4_InterruptSetup/Example4_InterruptSetup.ino
35+
- arduino --verify --board arduino:avr:uno $PWD/examples/Example5_QueueUsage/Example5_QueueUsage.ino
36+
- arduino --verify --board arduino:avr:uno $PWD/examples/Example6_ChangeI2CAddress/Example6_ChangeI2CAddress.ino
3237

3338
#compile for arduino SAMD
3439
- echo Compiling for Arduino SAMD...
3540
- arduino --verify --board arduino:samd:arduino_zero_edbg $PWD/examples/Example1_PrintButtonStatus/Example1_PrintButtonStatus.ino
41+
- arduino --verify --board arduino:samd:arduino_zero_edbg $PWD/examples/Example2_LightWhenPressed/Example2_LightWhenPressed.ino
42+
- arduino --verify --board arduino:samd:arduino_zero_edbg $PWD/examples/Example3_PulseWhenPressed/Example3_PulseWhenPressed.ino
43+
- arduino --verify --board arduino:samd:arduino_zero_edbg $PWD/examples/Example4_InterruptSetup/Example4_InterruptSetup.ino
44+
- arduino --verify --board arduino:samd:arduino_zero_edbg $PWD/examples/Example5_QueueUsage/Example5_QueueUsage.ino
45+
- arduino --verify --board arduino:samd:arduino_zero_edbg $PWD/examples/Example6_ChangeI2CAddress/Example6_ChangeI2CAddress.ino
3646

3747
#compile for SparkFun AVR
3848
- echo Compiling for SparkFun AVR...
3949
- arduino --verify --board SparkFun:avr:RedBoard $PWD/examples/Example1_PrintButtonStatus/Example1_PrintButtonStatus.ino
50+
- arduino --verify --board SparkFun:avr:RedBoard $PWD/examples/Example2_LightWhenPressed/Example2_LightWhenPressed.ino
51+
- arduino --verify --board SparkFun:avr:RedBoard $PWD/examples/Example3_PulseWhenPressed/Example3_PulseWhenPressed.ino
52+
- arduino --verify --board SparkFun:avr:RedBoard $PWD/examples/Example4_InterruptSetup/Example4_InterruptSetup.ino
53+
- arduino --verify --board SparkFun:avr:RedBoard $PWD/examples/Example5_QueueUsage/Example5_QueueUsage.ino
54+
- arduino --verify --board SparkFun:avr:RedBoard $PWD/examples/Example6_ChangeI2CAddress/Example6_ChangeI2CAddress.ino
4055

4156
#compile for SparkFun SAMD
4257
- echo Compiling for SparkFun SAMD...
4358
- arduino --verify --board SparkFun:samd:samd51_thing_plus $PWD/examples/Example1_PrintButtonStatus/Example1_PrintButtonStatus.ino
59+
- arduino --verify --board SparkFun:samd:samd51_thing_plus $PWD/examples/Example2_LightWhenPressed/Example2_LightWhenPressed.ino
60+
- arduino --verify --board SparkFun:samd:samd51_thing_plus $PWD/examples/Example3_PulseWhenPressed/Example3_PulseWhenPressed.ino
61+
- arduino --verify --board SparkFun:samd:samd51_thing_plus $PWD/examples/Example4_InterruptSetup/Example4_InterruptSetup.ino
62+
- arduino --verify --board SparkFun:samd:samd51_thing_plus $PWD/examples/Example5_QueueUsage/Example5_QueueUsage.ino
63+
- arduino --verify --board SparkFun:samd:samd51_thing_plus $PWD/examples/Example6_ChangeI2CAddress/Example6_ChangeI2CAddress.ino
4464

4565
#compile for SparkFun Artemis
4666
- echo Compiling for SparkFun Artemis...
4767
- arduino --verify --board SparkFun:apollo3:amap3blackboard $PWD/examples/Example1_PrintButtonStatus/Example1_PrintButtonStatus.ino
68+
- arduino --verify --board SparkFun:apollo3:amap3blackboard $PWD/examples/Example2_LightWhenPressed/Example2_LightWhenPressed.ino
69+
- arduino --verify --board SparkFun:apollo3:amap3blackboard $PWD/examples/Example3_PulseWhenPressed/Example3_PulseWhenPressed.ino
70+
- arduino --verify --board SparkFun:apollo3:amap3blackboard $PWD/examples/Example4_InterruptSetup/Example4_InterruptSetup.ino
71+
- arduino --verify --board SparkFun:apollo3:amap3blackboard $PWD/examples/Example5_QueueUsage/Example5_QueueUsage.ino
72+
- arduino --verify --board SparkFun:apollo3:amap3blackboard $PWD/examples/Example6_ChangeI2CAddress/Example6_ChangeI2CAddress.ino
4873

4974
notifications:
5075
email:

keywords.txt

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
######################################################################
2+
# Syntax Coloring Map for SparkFun Qwiic Button/Switch Arduino Library #
3+
######################################################################
4+
# Class
5+
######################################################################
6+
7+
QwiicButton KEYWORD1
8+
9+
######################################################################
10+
# Methods and Functions
11+
######################################################################
12+
13+
begin KEYWORD2
14+
isConnected KEYWORD2
15+
deviceID KEYWORD2
16+
checkDeviceID KEYWORD2
17+
getDeviceType KEYWORD2
18+
getFirmwareVersion KEYWORD2
19+
setI2Caddress KEYWORD2
20+
getI2Caddress KEYWORD2
21+
isPressed KEYWORD2
22+
hasBeenClicked KEYWORD2
23+
getDebounceTime KEYWORD2
24+
setDebounceTime KEYWORD2
25+
enablePressedInterrupt KEYWORD2
26+
disablePressedInterrupt KEYWORD2
27+
enableClickedInterrupt KEYWORD2
28+
disableClickedInterrupt KEYWORD2
29+
interruptTriggered KEYWORD2
30+
clearInterrupt KEYWORD2
31+
resetInterruptConfig KEYWORD2
32+
isPressedQueueFull KEYWORD2
33+
isPressedQueueEmpty KEYWORD2
34+
timeSinceLastPress KEYWORD2
35+
timeSinceFirstPress KEYWORD2
36+
popPressedQueue KEYWORD2
37+
isClickedQueueFull KEYWORD2
38+
isClickedQueueEmpty KEYWORD2
39+
timeSinceLastClick KEYWORD2
40+
timeSinceFirstClick KEYWORD2
41+
popClickedQueue KEYWORD2
42+
LEDconfig KEYWORD2
43+
LEDoff KEYWORD2
44+
LEDon KEYWORD2

library.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name=SparkFun Qwiic Button/Switch Library
22
version=1.0.0
33
author=SparkFun Electronics <[email protected]>
44
maintainer=Fischer Moseley <[email protected]>
5-
sentence=Driver for the SparkFun Qwiic Button and Switch.
6-
paragraph=The SparkFun Qwiic Button and Switch provide the perfect way to add user input to your project without worrying about taking up IO pins, debouncing the button, or letting your user know when the button has been pushed.
5+
sentence=Communicates and configures the SparkFun Qwiic Button and Switch.
6+
paragraph=This library allows the user to see the button status, configure the built-in LED, set up interrupts, change I2C addresses, and interface with the onboard button queues.
77
category=Sensors
8-
url=https://www.youtube.com/watch?v=dQw4w9WgXcQ
8+
url=https://sparkfun.com/products/15584
99
architectures=*

0 commit comments

Comments
 (0)