Skip to content

Commit 4394a79

Browse files
authored
add support for ARDUINO_ARCH_MBED (#13)
- add support for ARDUINO_ARCH_MBED
1 parent a5b2a69 commit 4394a79

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.3.2] - 2024-06-03
10+
- add support for ARDUINO_ARCH_MBED
11+
912
## [0.3.1] - 2024-04-09
1013
- update GitHub actions
1114
- add array example
1215
- minor edits
1316

14-
1517
## [0.3.0] - 2024-01-19
1618
- Fix #9, improve handling SPI dependency.
1719

MAX6675.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: MAX6675.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.3.1
4+
// VERSION: 0.3.2
55
// PURPOSE: Arduino library for MAX6675 chip for K type thermocouple
66
// DATE: 2022-01-11
77
// URL: https://github.com/RobTillaart/MAX6675

MAX6675.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: MAX6675.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.3.1
5+
// VERSION: 0.3.2
66
// PURPOSE: Arduino library for MAX6675 chip for K type thermocouple
77
// DATE: 2022-01-12
88
// URL: https://github.com/RobTillaart/MAX6675
@@ -23,10 +23,14 @@
2323
#include "SPI.h"
2424

2525

26-
#define MAX6675_LIB_VERSION (F("0.3.1"))
26+
#define MAX6675_LIB_VERSION (F("0.3.2"))
27+
2728

2829
#ifndef __SPI_CLASS__
29-
#if defined(ARDUINO_ARCH_RP2040)
30+
// MBED must be tested before RP2040
31+
#if defined(ARDUINO_ARCH_MBED)
32+
#define __SPI_CLASS__ SPIClass
33+
#elif defined(ARDUINO_ARCH_RP2040)
3034
#define __SPI_CLASS__ SPIClassRP2040
3135
#else
3236
#define __SPI_CLASS__ SPIClass

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/MAX6675"
1717
},
18-
"version": "0.3.1",
18+
"version": "0.3.2",
1919
"license": "MIT",
2020
"frameworks": "*",
2121
"platforms": "*",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=MAX6675
2-
version=0.3.1
2+
version=0.3.2
33
author=Rob Tillaart <rob.tillaart@gmail.com>
44
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
55
sentence=Arduino library for MAX6675 chip for K type thermocouple.

0 commit comments

Comments
 (0)