Skip to content

Commit

Permalink
Updated Adafruit_BusIO, Adafruit_BME280_Library.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Dec 13, 2021
1 parent 528a3d3 commit b64546e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions Sming/Libraries/.patches/Adafruit_BusIO.patch
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
diff --git a/Adafruit_SPIDevice.h b/Adafruit_SPIDevice.h
index 921030a..170dce3 100644
index e144bf0..ec2dc7d 100644
--- a/Adafruit_SPIDevice.h
+++ b/Adafruit_SPIDevice.h
@@ -1,67 +1,21 @@
@@ -2,66 +2,20 @@
#define Adafruit_SPIDevice_h

#include <Arduino.h>
-
-#if !defined(SPI_INTERFACES_COUNT) || \
- (defined(SPI_INTERFACES_COUNT) && (SPI_INTERFACES_COUNT > 0))
-
#include <SPI.h>

#ifndef Adafruit_SPIDevice_h
#define Adafruit_SPIDevice_h

-// some modern SPI definitions don't have BitOrder enum
-#if (defined(__AVR__) && !defined(ARDUINO_ARCH_MEGAAVR)) || \
- defined(ESP8266) || defined(TEENSYDUINO) || defined(SPARK) || \
Expand Down Expand Up @@ -71,13 +70,14 @@ index 921030a..170dce3 100644
/**! The class which defines how we will talk to this device over SPI **/
class Adafruit_SPIDevice {
public:
@@ -104,4 +58,3 @@ private:
@@ -103,5 +57,4 @@ private:
bool _begun;
};

#endif // Adafruit_SPIDevice_h
-#endif // has SPI defined
#endif // Adafruit_SPIDevice_h
diff --git a/README.md b/README.md
index 3fc8a1f..fba70bd 100644
index 1cc06a1..d98c288 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,6 @@
Expand All @@ -86,5 +86,5 @@ index 3fc8a1f..fba70bd 100644

+[![Build Status](https://github.com/adafruit/Adafruit_BusIO/workflows/Arduino%20Library%20CI/badge.svg)](https://github.com/adafruit/Adafruit_BusIO/actions)

This is a helper libary to abstract away I2C & SPI transactions and registers
This is a helper library to abstract away I2C & SPI transactions and registers

2 changes: 1 addition & 1 deletion Sming/Libraries/Adafruit_BME280_Library

0 comments on commit b64546e

Please sign in to comment.