mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.3 A1301
This commit is contained in:
parent
1d3d4594fb
commit
cbbffdb59f
@ -1,7 +1,7 @@
|
||||
platforms:
|
||||
rpipico:
|
||||
board: rp2040:rp2040:rpipico
|
||||
package: rp2040:rp2040
|
||||
package: rp2040:rp2040 # name:architecture:board
|
||||
gcc:
|
||||
features:
|
||||
defines:
|
||||
@ -9,9 +9,22 @@ platforms:
|
||||
warnings:
|
||||
flags:
|
||||
|
||||
teensy41:
|
||||
board: teensy:Teensy:teensy41
|
||||
package: teensy:Teensy
|
||||
gcc:
|
||||
features:
|
||||
defines:
|
||||
- ARDUINO_TEENSY41
|
||||
warnings:
|
||||
flags:
|
||||
|
||||
packages:
|
||||
rp2040:rp2040:
|
||||
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
|
||||
teensy:Teensy:
|
||||
url: https://www.pjrc.com/teensy/package_teensy_index.json
|
||||
|
||||
|
||||
compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
@ -20,9 +33,10 @@ compile:
|
||||
# - due
|
||||
# - zero
|
||||
# - leonardo
|
||||
- m4
|
||||
#- m4
|
||||
- esp32
|
||||
- esp8266
|
||||
#- esp8266
|
||||
# - mega2560
|
||||
- rpipico
|
||||
# - teensy41
|
||||
|
||||
|
63
libraries/A1301/.github/workflows/platformIO_test_runner.yml
vendored
Normal file
63
libraries/A1301/.github/workflows/platformIO_test_runner.yml
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
#
|
||||
# experimental
|
||||
#
|
||||
# https://docs.github.com/en/actions/
|
||||
# https://docs.github.com/en/actions/examples/using-concurrency-expressions-and-a-test-matrix
|
||||
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
|
||||
#
|
||||
|
||||
name: PlatformIO CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
# add examples manually.
|
||||
# ls -R examples/*/*.ino
|
||||
# test sketch can be commented with a #
|
||||
example: [
|
||||
examples/A1301_autoMidPoint/A1301_autoMidPoint.ino,
|
||||
examples/A1301_demo/A1301_demo.ino,
|
||||
examples/A1301_determineNoise/A1301_determineNoise.ino,
|
||||
examples/A1301_performance/A1301_performance.ino,
|
||||
examples/A1301_plotter/A1301_plotter.ino,
|
||||
examples/A1301_test/A1301_test.ino,
|
||||
examples/A1301_test_saturation/A1301_test_saturation.ino
|
||||
]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install PlatformIO Core
|
||||
run: pip install --upgrade platformio
|
||||
|
||||
- name: Download library
|
||||
run: |
|
||||
wget https://github.com/${{github.repository}}/archive/${{github.ref_name}}.zip -O /tmp/${{github.ref_name}}.zip
|
||||
unzip /tmp/${{github.ref_name}}.zip -d /tmp/${{github.actor}}
|
||||
|
||||
- name: Build PlatformIO examples
|
||||
run: pio ci --lib "." --lib="/tmp/${{github.repository}}-${{github.ref_name}}" --board=esp32dev
|
||||
env:
|
||||
PLATFORMIO_CI_SRC: ${{ matrix.example }}
|
||||
# PLATFORMIO_BUILD_FLAGS: -D -Wall # too much
|
||||
|
||||
- name: additional tests (experimental)
|
||||
# /home/runner/work/A1301/A1301 => all examples are there...
|
||||
run: |
|
||||
pwd
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// FILE: A1301.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.2.2
|
||||
// VERSION: 0.2.3
|
||||
// DATE: 2010-07-22
|
||||
// PURPOSE: Arduino library for A1301 A1302 magnetometer.
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
@ -235,7 +235,7 @@ float HALL::saturationLevel()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DERIVED
|
||||
// DERIVED CLASSES
|
||||
//
|
||||
A1301::A1301(uint8_t pin) : HALL(pin)
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: A1301.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.2.2
|
||||
// VERSION: 0.2.3
|
||||
// DATE: 2010-07-22
|
||||
// PURPOSE: Arduino library for A1301 A1302 magnetometer.
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
#define A1301_LIB_VERSION (F("0.2.2"))
|
||||
#define A1301_LIB_VERSION (F("0.2.3"))
|
||||
|
||||
|
||||
class HALL
|
||||
@ -94,7 +94,7 @@ protected:
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
//
|
||||
// DERIVED
|
||||
// DERIVED CLASSES
|
||||
//
|
||||
class A1301 : public HALL
|
||||
{
|
||||
|
@ -6,12 +6,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.2.3] - 2024-04-19
|
||||
- update GitHub actions
|
||||
- experimental PlatformIO build-CI
|
||||
- add PlatformIO build badge in readme.md
|
||||
- add Commits since last release badge in readme.md
|
||||
- experimental Teensy build (no success yet)
|
||||
- minor edits in examples.
|
||||
|
||||
|
||||
## [0.2.2] - 2024-01-01
|
||||
- add **float autoMidPoint(times)**
|
||||
- add examples
|
||||
- update readme.md
|
||||
|
||||
|
||||
## [0.2.1] - 2023-09-19
|
||||
- add **bool isRising()** and **bool isFalling()**
|
||||
- add **float deltaGauss()**
|
||||
|
@ -1,4 +1,5 @@
|
||||
|
||||
[![PlatformIO CI](https://github.com/RobTillaart/A1301/workflows/PlatformIO%20CI/badge.svg)](https://docs.platformio.org/en/latest/integration/ci/github-actions.html)
|
||||
[![Arduino CI](https://github.com/RobTillaart/A1301/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
||||
[![Arduino-lint](https://github.com/RobTillaart/A1301/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/A1301/actions/workflows/arduino-lint.yml)
|
||||
[![JSON check](https://github.com/RobTillaart/A1301/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/A1301/actions/workflows/jsoncheck.yml)
|
||||
@ -8,6 +9,8 @@
|
||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/A1301.svg?maxAge=3600)](https://github.com/RobTillaart/A1301/releases)
|
||||
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/A1301.svg)](https://registry.platformio.org/libraries/robtillaart/A1301)
|
||||
|
||||
[![Commits since latest](https://img.shields.io/github/commits-since/RobTillaart/A1301/latest)](https://github.com/RobTillaart/A1301/commits/master)
|
||||
|
||||
|
||||
# A1301
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "A1301.h"
|
||||
|
||||
A1301 mm(A0);
|
||||
|
@ -5,7 +5,6 @@
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "A1301.h"
|
||||
|
||||
A1301 mm(A0);
|
||||
|
@ -2,9 +2,9 @@
|
||||
// FILE: A1301_determineNoise.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: demo A1301 A1302 magnetometer.
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "A1301.h"
|
||||
|
||||
A1301 mm(A0);
|
||||
|
@ -5,7 +5,6 @@
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "A1301.h"
|
||||
|
||||
A1301 mm(A0);
|
||||
|
@ -7,7 +7,6 @@
|
||||
// to be used with Arduino Serial plotter
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "A1301.h"
|
||||
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
// FILE: A1301_test.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: demo A1301 A1302 magnetometer.
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "A1301.h"
|
||||
|
||||
A1301 mm(A0);
|
||||
|
@ -2,9 +2,9 @@
|
||||
// FILE: A1301_test_saturation.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: demo A1301 A1302 magnetometer.
|
||||
// URL: https://github.com/RobTillaart/A1301
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "A1301.h"
|
||||
|
||||
A1301 mm(A0);
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/A1301.git"
|
||||
},
|
||||
"version": "0.2.2",
|
||||
"version": "0.2.3",
|
||||
"license": "MIT",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=A1301
|
||||
version=0.2.2
|
||||
version=0.2.3
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for A1301 et al magnetometer.
|
||||
|
Loading…
Reference in New Issue
Block a user