Skip to content

Commit

Permalink
fix URL in examples + minor edits (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Jan 5, 2024
1 parent d51cb29 commit e897960
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 15 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).


## [0.3.1] - 2024-01-05
- add URL to examples
- minor edits


## [0.3.0] - 2023-12-24
- Fix #14, support for Arduino ESP32 S3 - breaking change
- update readme.md
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2023 Rob Tillaart
Copyright (c) 2022-2024 Rob Tillaart

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion MCP23008.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// FILE: MCP23008.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.3.0
// VERSION: 0.3.1
// PURPOSE: Arduino library for I2C MCP23008 8 channel port expander
// DATE: 2019-10-12
// URL: https://github.com/RobTillaart/MCP23008
Expand Down
4 changes: 2 additions & 2 deletions MCP23008.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// FILE: MCP23008.h
// AUTHOR: Rob Tillaart
// VERSION: 0.3.0
// VERSION: 0.3.1
// PURPOSE: Arduino library for I2C MCP23008 8 channel port expander
// DATE: 2022-01-10
// URL: https://github.com/RobTillaart/MCP23008
Expand All @@ -12,7 +12,7 @@
#include "Wire.h"


#define MCP23008_LIB_VERSION (F("0.3.0"))
#define MCP23008_LIB_VERSION (F("0.3.1"))

#define MCP23008_OK 0x00
#define MCP23008_PIN_ERROR 0x81
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
// AUTHOR: François Longchamp
// DATE: 2022-09-27
// PURPOSE: Keypad MCP23008 library
// URL: https://github.com/RobTillaart/MCP23008
//
// Tested with Seeed Studio XIAO RP2040
// Keypad used https://fr.aliexpress.com/item/1005003176287473.html


#include "MCP23008.h"
#include "Wire.h"


MCP23008 MCP(0x20);


const byte ROWS_OF_KEYPAD = 4; //four rows
const byte COLS_OF_KEYPAD = 4; //four columns
const byte ROWS_OF_KEYPAD = 4; // four rows
const byte COLS_OF_KEYPAD = 4; // four columns

byte keys_of_keypad[ROWS_OF_KEYPAD][COLS_OF_KEYPAD] = {
{1, 2, 3, 4},
Expand Down Expand Up @@ -90,3 +90,7 @@ void loop()
Serial.println("");
delay(500);
}


// -- END OF FILE --

5 changes: 3 additions & 2 deletions examples/MCP23008_digitalRead/MCP23008_digitalRead.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// FILE: MCP23008_digitalRead.ino
// AUTHOR: Rob Tillaart
// DATE: 2019-10-14
// PUPROSE: test MCP23008 library
// PURPOSE: test MCP23008 library
// URL: https://github.com/RobTillaart/MCP23008


#include "MCP23008.h"
#include "Wire.h"


MCP23008 MCP(0x27);
Expand Down Expand Up @@ -37,6 +37,7 @@ void setup()
Serial.println("TEST read1(pin)");
}


void loop()
{
for (int pin = 0; pin < 8; pin++)
Expand Down
4 changes: 2 additions & 2 deletions examples/MCP23008_digitalWrite/MCP23008_digitalWrite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// FILE: MCP23008_digitalWrite.ino
// AUTHOR: Rob Tillaart
// DATE: 2019-10-14
// PUPROSE: test MCP23008 library
// PURPOSE: test MCP23008 library
// URL: https://github.com/RobTillaart/MCP23008


#include "MCP23008.h"
#include "Wire.h"


MCP23008 MCP(0x27);
Expand Down
3 changes: 2 additions & 1 deletion examples/MCP23008_performance/MCP23008_performance.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
// AUTHOR: Rob Tillaart
// DATE: 2022-01-09
// PURPOSE: test MCP23008 library
// URL: https://github.com/RobTillaart/MCP23008


#include "MCP23008.h"
#include "Wire.h"


MCP23008 MCP(0x27);

Expand Down
3 changes: 2 additions & 1 deletion examples/MCP23008_test/MCP23008_test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
// AUTHOR: Rob Tillaart
// DATE: 2023-06-20
// PURPOSE: test MCP23008 library
// URL: https://github.com/RobTillaart/MCP23008


#include "MCP23008.h"
#include "Wire.h"


MCP23008 MCP(0x22);

Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/MCP23008.git"
},
"version": "0.3.0",
"version": "0.3.1",
"license": "MIT",
"frameworks": "*",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=MCP23008
version=0.3.0
version=0.3.1
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
Expand Down

0 comments on commit e897960

Please sign in to comment.