mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-19 16:46:11 -04:00
0.1.5 MCP23008
This commit is contained in:
parent
60db94fca2
commit
41ebc1a3f1
@ -6,13 +6,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.1.5] - 2023-09-23
|
||||
- add Wire1 support for ESP32
|
||||
- update readme.md
|
||||
|
||||
|
||||
## [0.1.4] - 2023-06-20
|
||||
- add CMakeLists.txt #8
|
||||
- add debug function **uint8_t getPinMode8()**
|
||||
- add keywords.txt
|
||||
- update examples
|
||||
|
||||
|
||||
## [0.1.3] - 2023-02-04
|
||||
- update readme.md
|
||||
- update GitHub actions
|
||||
|
@ -8,3 +8,4 @@ idf_component_register(SRCS "MCP23008.cpp"
|
||||
REQUIRES arduino)
|
||||
|
||||
project(MCP23008)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// FILE: MCP23008.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.4
|
||||
// VERSION: 0.1.5
|
||||
// PURPOSE: Arduino library for I2C MCP23008 8 channel port expander
|
||||
// DATE: 2019-10-12
|
||||
// URL: https://github.com/RobTillaart/MCP23008
|
||||
@ -35,7 +35,6 @@ MCP23008::MCP23008(uint8_t address, TwoWire *wire)
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
bool MCP23008::begin(const uint8_t dataPin, const uint8_t clockPin)
|
||||
{
|
||||
_wire = &Wire;
|
||||
_wire->begin(dataPin, clockPin);
|
||||
// check connected
|
||||
if (! isConnected()) return false;
|
||||
@ -364,7 +363,6 @@ int MCP23008::lastError()
|
||||
//
|
||||
// DEBUG
|
||||
//
|
||||
|
||||
uint8_t MCP23008::getPinMode8()
|
||||
{
|
||||
return readReg(0);
|
||||
@ -375,7 +373,6 @@ uint8_t MCP23008::getPinMode8()
|
||||
//
|
||||
// PRIVATE
|
||||
//
|
||||
|
||||
bool MCP23008::writeReg(uint8_t reg, uint8_t value)
|
||||
{
|
||||
_wire->beginTransmission(_address);
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: MCP23008.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.1.4
|
||||
// VERSION: 0.1.5
|
||||
// PURPOSE: Arduino library for I2C MCP23008 8 channel port expander
|
||||
// DATE: 2022-01-10
|
||||
// URL: https://github.com/RobTillaart/MCP23008
|
||||
@ -12,7 +12,7 @@
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
#define MCP23008_LIB_VERSION (F("0.1.4"))
|
||||
#define MCP23008_LIB_VERSION (F("0.1.5"))
|
||||
|
||||
#define MCP23008_OK 0x00
|
||||
#define MCP23008_PIN_ERROR 0x81
|
||||
|
@ -2,8 +2,11 @@
|
||||
[![Arduino CI](https://github.com/RobTillaart/MCP23008/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
||||
[![Arduino-lint](https://github.com/RobTillaart/MCP23008/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/MCP23008/actions/workflows/arduino-lint.yml)
|
||||
[![JSON check](https://github.com/RobTillaart/MCP23008/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/MCP23008/actions/workflows/jsoncheck.yml)
|
||||
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/MCP23008.svg)](https://github.com/RobTillaart/MCP23008/issues)
|
||||
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/MCP23008/blob/master/LICENSE)
|
||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/MCP23008.svg?maxAge=3600)](https://github.com/RobTillaart/MCP23008/releases)
|
||||
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/MCP23008.svg)](https://registry.platformio.org/libraries/robtillaart/MCP23008)
|
||||
|
||||
|
||||
# MCP23008
|
||||
@ -100,5 +103,26 @@ See examples.
|
||||
|
||||
## Future
|
||||
|
||||
#### Must
|
||||
|
||||
- improve documentation
|
||||
|
||||
#### Should
|
||||
|
||||
- keep in sync with MCP23017
|
||||
|
||||
|
||||
#### Could
|
||||
|
||||
|
||||
#### Wont
|
||||
|
||||
|
||||
## Support
|
||||
|
||||
If you appreciate my libraries, you can support the development and maintenance.
|
||||
Improve the quality of the libraries by providing issues and Pull Requests, or
|
||||
donate through PayPal or GitHub sponsors.
|
||||
|
||||
Thank you,
|
||||
|
||||
|
@ -42,3 +42,5 @@ MCP23008_PIN_ERROR LITERAL1
|
||||
MCP23008_I2C_ERROR LITERAL1
|
||||
MCP23008_VALUE_ERROR LITERAL1
|
||||
MCP23008_PORT_ERROR LITERAL1
|
||||
MCP23008_INVALID_READ LITERAL1
|
||||
|
||||
|
@ -15,9 +15,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/MCP23008.git"
|
||||
},
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
"headers": "MCP23008.h"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=MCP23008
|
||||
version=0.1.4
|
||||
version=0.1.5
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for I2C MCP23008 8 channel port expander 8 IO-lines
|
||||
|
Loading…
Reference in New Issue
Block a user