Skip to content

Commit 8fc1c02

Browse files
committed
#155 fix shift register to compile on mbed Arduino. Bump version for release.
1 parent c6ab48e commit 8fc1c02

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,15 @@ Note that although the Arduino constructor allows the bit depth to be set, it on
247247
analog.setCurrentValue(PWM_PIN, newValue);
248248
```
249249

250-
## ESP32 extras mode
250+
## Matrix keyboard support
251251

252-
On ESP32 we are slowly adding support for direct IDF, as it's been requested by one of our clients. This will slowly appear over several releases. To enable this mode you can set the flag `IOA_USE_ESP32_EXTRAS`. Once you do this IDF functions are used for all digital IO functions. We always use IDF functions for analog input and DAC output, and are slowly moving toward direct LTDC functions for PWM instead of wrappers.
252+
You can create matrix keyboards with any arrangement of keys, but the two most common cases of 3x4 and 4x4 layout number pads have ready-made layouts. There is an example showing usage in detail in both polling and interrupt mode on device pins and an I2C IoExpander.
253253

254-
## Other links
254+
Alongside the example, there is comprehensive documentation describing the use of [matrix keyboards on Arduino](https://www.thecoderscorner.com/products/arduino-libraries/io-abstraction/matrix-keyboard-keypad-manager/).
255255

256-
[https://www.thecoderscorner.com/electronics/microcontrollers/switches-inputs/basic-io-abstraction-library-pins-or-8574/]
256+
## ESP32 extras mode
257+
258+
On ESP32 we are slowly adding support for direct IDF, as it's been requested by one of our clients. This will slowly appear over several releases. To enable this mode you can set the flag `IOA_USE_ESP32_EXTRAS`. Once you do this IDF functions are used for all digital IO functions. We always use IDF functions for analog input and DAC output, and are slowly moving toward direct LTDC functions for PWM instead of wrappers.
257259

258260
## Making changes to IoAbstraction
259261

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"name": "TaskManagerIO"
2626
}
2727
],
28-
"version": "2.3.0",
28+
"version": "2.3.1",
2929
"license": "Apache-2.0",
3030
"frameworks": "arduino, mbed",
3131
"platforms": "*",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
name=IoAbstraction
7-
version=2.3.0
7+
version=2.3.1
88
maintainer=https://www.thecoderscorner.com
99
author=davetcc
1010
category=Other

src/IoAbstraction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ uint8_t ShiftRegisterIoAbstraction::readPort(pinid_t pin) {
9191
}
9292
}
9393

94-
uint8_t ShiftRegisterIoAbstraction::readValue(uint8_t pin) {
94+
uint8_t ShiftRegisterIoAbstraction::readValue(pinid_t pin) {
9595
return ((lastRead & (1 << pin)) != 0) ? HIGH : LOW;
9696
}
9797

src/IoAbstraction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ShiftRegisterIoAbstraction : public BasicIoAbstraction {
5757
~ShiftRegisterIoAbstraction() override { }
5858
void pinDirection(pinid_t pin, uint8_t mode) override;
5959
void writeValue(pinid_t pin, uint8_t value) override;
60-
uint8_t readValue(uint8_t pin) override;
60+
uint8_t readValue(pinid_t pin) override;
6161
/**
6262
* Interrupts are not supported on shift registers
6363
*/

0 commit comments

Comments
 (0)