mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.5.0 MCP23S08
This commit is contained in:
parent
717716cc66
commit
d4a496c176
@ -6,11 +6,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.5.0] - 2024-01-20
|
||||
- Fix #14, improve handling SPI dependency.
|
||||
- update examples
|
||||
|
||||
----
|
||||
|
||||
## [0.4.1] - 2024-01-05
|
||||
- Fix URL in examples
|
||||
- minor edits
|
||||
|
||||
|
||||
## [0.4.0] - 2023-12-01
|
||||
- Fix #30, support for Arduino ESP32 S3 - breaking change
|
||||
- update readme.md
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// FILE: MCP23S08.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.3.1
|
||||
// VERSION: 0.5.0
|
||||
// PURPOSE: Arduino library for SPI MCP23S08 8 channel port expander
|
||||
// DATE: 2022-01-10
|
||||
// URL: https://github.com/RobTillaart/MCP23S08
|
||||
@ -51,8 +51,8 @@ bool MCP23S08::begin()
|
||||
|
||||
if (_hwSPI)
|
||||
{
|
||||
_mySPI->end();
|
||||
_mySPI->begin();
|
||||
// _mySPI->end();
|
||||
// _mySPI->begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: MCP23S08.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.4.1
|
||||
// VERSION: 0.5.0
|
||||
// PURPOSE: Arduino library for SPI MCP23S08 8 channel port expander
|
||||
// DATE: 2022-01-10
|
||||
// URL: https://github.com/RobTillaart/MCP23S08
|
||||
@ -13,7 +13,7 @@
|
||||
#include "MCP23S08_registers.h"
|
||||
|
||||
|
||||
#define MCP23S08_LIB_VERSION (F("0.4.1"))
|
||||
#define MCP23S08_LIB_VERSION (F("0.5.0"))
|
||||
|
||||
// ERROR CODES
|
||||
#define MCP23S08_OK 0x00
|
||||
|
@ -25,6 +25,13 @@ The **write1(pin, value)** is optimized.
|
||||
If a pin is not changed it will not be written again to save time.
|
||||
|
||||
|
||||
#### 0.5.0 Breaking change
|
||||
|
||||
Version 0.5.0 introduced a breaking change to improve handling the SPI dependency.
|
||||
The user has to call **SPI.begin()** or equivalent before calling **MCP.begin()**.
|
||||
Optionally the user can provide parameters to the **SPI.begin(...)**
|
||||
|
||||
|
||||
#### 0.4.0 Breaking change
|
||||
|
||||
The version 0.4.0 has breaking changes in the interface.
|
||||
|
@ -1,7 +1,6 @@
|
||||
//
|
||||
// FILE: MCP23S08_digitalRead.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2021-12-30
|
||||
// PURPOSE: test MCP23S08 library
|
||||
// URL: https://github.com/RobTillaart/MCP23S08
|
||||
|
||||
@ -23,6 +22,7 @@ void setup()
|
||||
delay(100);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
rv = MCP.begin();
|
||||
Serial.println(rv);
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
//
|
||||
// FILE: MCP23S08_digitalWrite.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2021-12-30
|
||||
// PURPOSE: test MCP23S08 library
|
||||
// URL: https://github.com/RobTillaart/MCP23S08
|
||||
|
||||
@ -22,6 +21,7 @@ void setup()
|
||||
delay(100);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
bool b = MCP.begin();
|
||||
Serial.print("BEGIN: ");
|
||||
Serial.println(b ? "true" : "false");
|
||||
|
@ -1,7 +1,6 @@
|
||||
//
|
||||
// FILE: MCP23S08_performance.ino
|
||||
// AUTHOR: Rob Tillaart
|
||||
// DATE: 2021-12-30
|
||||
// PURPOSE: test MCP23S08 library
|
||||
// URL: https://github.com/RobTillaart/MCP23S08
|
||||
|
||||
@ -25,6 +24,7 @@ void setup()
|
||||
delay(100);
|
||||
|
||||
SPI.begin();
|
||||
|
||||
bool b = MCP.begin();
|
||||
Serial.print("BEGIN: ");
|
||||
Serial.println(b);
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/MCP23S08.git"
|
||||
},
|
||||
"version": "0.4.1",
|
||||
"version": "0.5.0",
|
||||
"license": "MIT",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=MCP23S08
|
||||
version=0.4.1
|
||||
version=0.5.0
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for SPI MCP23S08 8 channel port expander 8 IO-lines
|
||||
|
Loading…
Reference in New Issue
Block a user