Skip to content

Commit b42b05b

Browse files
committed
Add library files.
Add gitattributes and gitignore files. Add arduino library files library.properties and keywords.txt. Add a CI YAML file.
1 parent 2e4019e commit b42b05b

File tree

5 files changed

+340
-0
lines changed

5 files changed

+340
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: Cross-compilation
2+
3+
on:
4+
# - push
5+
#- pull_request
6+
7+
8+
jobs:
9+
compile-sketch:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
15+
matrix:
16+
board:
17+
# Uno
18+
# https://github.com/arduino/ArduinoCore-avr/blob/master/boards.txt
19+
- fqbn: arduino:avr:mega
20+
platforms: |
21+
- name: arduino:avr
22+
source-url: https://downloads.arduino.cc/packages/package_index.json
23+
24+
# ESP32
25+
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
26+
- fqbn: esp32:esp32:esp32
27+
platforms: |
28+
- name: esp32:esp32
29+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
30+
31+
# ESP32-S2
32+
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
33+
- fqbn: esp32:esp32:esp32s2
34+
platforms: |
35+
- name: esp32:esp32
36+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
37+
38+
# ESP32-C3
39+
# https://github.com/espressif/arduino-esp32/blob/master/boards.txt
40+
- fqbn: esp32:esp32:esp32c3
41+
platforms: |
42+
- name: esp32:esp32
43+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
44+
45+
# Artemis / Apollo3
46+
# https://github.com/sparkfun/Arduino_Apollo3/blob/main/boards.txt
47+
- fqbn: SparkFun:apollo3:sfe_artemis_atp
48+
platforms: |
49+
- name: SparkFun:apollo3
50+
source-url: https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json
51+
52+
# ESP8266
53+
# https://github.com/esp8266/Arduino/blob/master/boards.txt
54+
- fqbn: esp8266:esp8266:thingdev
55+
platforms: |
56+
- name: esp8266:esp8266
57+
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
58+
59+
# SAMD21
60+
# https://github.com/arduino/ArduinoCore-samd/blob/master/boards.txt
61+
- fqbn: arduino:samd:mkr1000
62+
platforms: |
63+
- name: arduino:samd
64+
# source-url: https://downloads.arduino.cc/packages/package_index.json
65+
66+
# Nano BLE 33 / nRF52840
67+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
68+
- fqbn: arduino:mbed:nano33ble
69+
platforms: |
70+
- name: arduino:mbed
71+
# source-url: https://downloads.arduino.cc/packages/package_index.json
72+
73+
# RP2040
74+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
75+
- fqbn: rp2040:rp2040:sparkfun_promicrorp2040
76+
platforms: |
77+
- name: rp2040:rp2040
78+
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
79+
80+
# STM32
81+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
82+
- fqbn: STMicroelectronics:stm32:GenF4
83+
platforms: |
84+
- name: STMicroelectronics:stm32
85+
source-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
86+
87+
steps:
88+
- name: Checkout
89+
uses: actions/checkout@v3
90+
91+
- name: Branch name
92+
run: echo running on branch ${GITHUB_REF##*/}
93+
94+
- name: Compile Sketch
95+
uses: arduino/compile-sketches@v1.1.0
96+
with:
97+
platforms: ${{ matrix.board.platforms }}
98+
fqbn: ${{ matrix.board.fqbn }}
99+
libraries: |
100+
- source-path: ./
101+
sketch-paths: |
102+
- test/test
103+
enable-warnings-report: true
104+
enable-deltas-report: true
105+
verbose: true
106+
107+
# outputs:
108+
# report-artifact-name: ${{ steps.report-artifact-name.outputs.report-artifact-name }}
109+

.gitignore

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
#################
2+
## SparkFun Useful stuff
3+
#################
4+
5+
## AVR Development
6+
*.eep
7+
*.elf
8+
*.lst
9+
*.lss
10+
*.sym
11+
*.d
12+
*.o
13+
*.srec
14+
*.map
15+
16+
## Notepad++ backup files
17+
*.bak
18+
19+
## BOM files
20+
*bom*
21+
22+
## VSCode directories
23+
.vscode
24+
25+
#################
26+
## Eclipse
27+
#################
28+
29+
*.pydevproject
30+
.project
31+
.metadata
32+
bin/
33+
tmp/
34+
*.tmp
35+
*.bak
36+
*.swp
37+
*~.nib
38+
local.properties
39+
.classpath
40+
.settings/
41+
.loadpath
42+
43+
# External tool builders
44+
.externalToolBuilders/
45+
46+
# Locally stored "Eclipse launch configurations"
47+
*.launch
48+
49+
# CDT-specific
50+
.cproject
51+
52+
# PDT-specific
53+
.buildpath
54+
55+
56+
#############
57+
## Eagle
58+
#############
59+
60+
# Ignore the board and schematic backup files and lock files
61+
*.b#?
62+
*.s#?
63+
*.l#?
64+
*.lck
65+
66+
67+
#############
68+
## KiCad
69+
#############
70+
71+
*cache.lib
72+
*.kicad_pcb-bak
73+
*.net
74+
*.gbr
75+
*.drl
76+
77+
78+
#################
79+
## Visual Studio
80+
#################
81+
82+
## Ignore Visual Studio temporary files, build results, and
83+
## files generated by popular Visual Studio add-ons.
84+
85+
# User-specific files
86+
*.suo
87+
*.user
88+
*.sln.docstates
89+
90+
# Build results
91+
[Dd]ebug/
92+
[Rr]elease/
93+
*_i.c
94+
*_p.c
95+
*.ilk
96+
*.meta
97+
*.obj
98+
*.pch
99+
*.pdb
100+
*.pgc
101+
*.pgd
102+
*.rsp
103+
*.sbr
104+
*.tlb
105+
*.tli
106+
*.tlh
107+
*.tmp
108+
*.vspscc
109+
.builds
110+
*.dotCover
111+
112+
## TODO: If you have NuGet Package Restore enabled, uncomment this
113+
#packages/
114+
115+
# Visual C++ cache files
116+
ipch/
117+
*.aps
118+
*.ncb
119+
*.opensdf
120+
*.sdf
121+
122+
# Visual Studio profiler
123+
*.psess
124+
*.vsp
125+
126+
# ReSharper is a .NET coding add-in
127+
_ReSharper*
128+
129+
# Installshield output folder
130+
[Ee]xpress
131+
132+
# DocProject is a documentation generator add-in
133+
DocProject/buildhelp/
134+
DocProject/Help/*.HxT
135+
DocProject/Help/*.HxC
136+
DocProject/Help/*.hhc
137+
DocProject/Help/*.hhk
138+
DocProject/Help/*.hhp
139+
DocProject/Help/Html2
140+
DocProject/Help/html
141+
142+
# Click-Once directory
143+
publish
144+
145+
# Others
146+
[Bb]in
147+
[Oo]bj
148+
sql
149+
TestResults
150+
*.Cache
151+
ClientBin
152+
stylecop.*
153+
~$*
154+
*.dbmdl
155+
Generated_Code #added for RIA/Silverlight projects
156+
157+
# Backup & report files from converting an old project file to a newer
158+
# Visual Studio version. Backup files are not needed, because we have git ;-)
159+
_UpgradeReport_Files/
160+
Backup*/
161+
UpgradeLog*.XML
162+
163+
164+
############
165+
## Windows
166+
############
167+
168+
# Windows image file caches
169+
Thumbs.db
170+
171+
# Folder config file
172+
Desktop.ini
173+
174+
175+
#############
176+
## Mac OS
177+
#############
178+
179+
.DS_Store
180+
181+
182+
#############
183+
## Linux
184+
#############
185+
186+
# backup files (*.bak on Win)
187+
*~
188+
189+
190+
#############
191+
## Python
192+
#############
193+
194+
*.py[co]
195+
196+
# Packages
197+
*.egg
198+
*.egg-info
199+
dist
200+
build
201+
eggs
202+
parts
203+
bin
204+
var
205+
sdist
206+
develop-eggs
207+
.installed.cfg
208+
209+
# Installer logs
210+
pip-log.txt
211+
212+
# Unit test / coverage reports
213+
.coverage
214+
.tox
215+
216+
#Translations
217+
*.mo
218+
219+
#Mr Developer
220+
.mr.developer.cfg

keywords.txt

Whitespace-only changes.

library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=SparkFun AS7331 Arduino Library
2+
version=0.1.0
3+
author=SparkFun Electronics
4+
maintainer=SparkFun Electronics
5+
sentence=An Arduino library to make use of the Qwiic and Qwiic Mini AS7331 Spectral UV Sensor
6+
paragraph=
7+
category=Other
8+
url=https://github.com/sparkfun/SparkFun_AS7331_Arduino_Library
9+
architectures=*

0 commit comments

Comments
 (0)