Skip to content

Commit

Permalink
Merge branch 'dr_arduino' into arduino
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinekitty committed Sep 5, 2024
2 parents 1ae6fce + ab6a847 commit 64149c5
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/arduino.yml
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
28 changes: 28 additions & 0 deletions source/arduino/keywords.txt
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
10 changes: 10 additions & 0 deletions source/arduino/library.properties
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

0 comments on commit 64149c5

Please sign in to comment.