-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dr_arduino' into arduino
- Loading branch information
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Arduino Build | ||
|
||
on: | ||
push: | ||
branches: [arduino] | ||
|
||
|
||
jobs: | ||
test-matrix: | ||
strategy: | ||
matrix: | ||
arduino-platform: ["rp2040:rp2040"] | ||
include: | ||
- arduino-platform: "rp2040:rp2040" | ||
fqbn: "rp2040:rp2040:rpipico" | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Run PWD | ||
run: pwd | ||
|
||
- name: Install Arduino-cli | ||
run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh | ||
|
||
- name: Install platform | ||
run: | | ||
export PATH="${{ github.workspace }}/bin:$PATH" | ||
arduino-cli config add board_manager.additional_urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | ||
arduino-cli core update-index | ||
arduino-cli core install ${{ matrix.arduino-platform }} | ||
- name: TestArduinoFile | ||
working-directory: ./source/arduino | ||
run: | | ||
export PATH="${{ github.workspace }}/bin:$PATH" | ||
files=$(ls ../../demo/arduino/) | ||
echo "Files in the folder:" | ||
echo "$files" | ||
for file in $files; do | ||
echo "Processing and Testing Arduino Sketch: $file" | ||
cp ../../demo/arduino/$file/$file.ino ./arduino.ino | ||
arduino-cli compile --fqbn rp2040:rp2040:rpipico ./arduino.ino | ||
rm ./arduino.ino | ||
done | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
####################################### | ||
# Syntax Coloring Map For ExampleLibrary | ||
####################################### | ||
|
||
####################################### | ||
# Datatypes (KEYWORD1) | ||
####################################### | ||
|
||
ASTRONOMY KEYWORD1 | ||
|
||
####################################### | ||
# Methods and Functions (KEYWORD2) | ||
####################################### | ||
|
||
argvs KEYWORD2 | ||
ParseArgs KEYWORD2 | ||
|
||
|
||
####################################### | ||
# Instances (KEYWORD2) | ||
####################################### | ||
|
||
####################################### | ||
# Constants (LITERAL1) | ||
####################################### | ||
|
||
Astronomy_ObserverGravity LITERAL1 | ||
Astronomy_ObserverGravity1 LITERAL1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name=ASTRONOMYENGINE | ||
version=1.0 | ||
author=cosinekitty,DannyRavi | ||
maintainer=cosinekitty,DannyRavi | ||
sentence=Astronomy Engine library | ||
paragraph=Library to Astronomy engine | ||
category=Others | ||
url=https://github.com/dannyravi/astronomy | ||
architectures=rpi2040 | ||
includes=astronomy.h,astro_demo_common.h |