0.1.1 I2CKeyPad8x8

This commit is contained in:
rob tillaart 2022-11-13 09:44:30 +01:00
parent ce4a337092
commit 643288e26b
9 changed files with 72 additions and 25 deletions

View File

@ -1,3 +1,18 @@
platforms:
rpipico:
board: rp2040:rp2040:rpipico
package: rp2040:rp2040
gcc:
features:
defines:
- ARDUINO_ARCH_RP2040
warnings:
flags:
packages:
rp2040:rp2040:
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
compile:
# Choosing to run compilation tests on 2 different Arduino platforms
platforms:
@ -7,5 +22,7 @@ compile:
# - leonardo
- m4
- esp32
# - esp8266
- esp8266
# - mega2560
- rpipico

View File

@ -0,0 +1,15 @@
# Change Log I2CKeyPad8x8
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.1.1] - 2022-11-12
- Add RP2040 support to build-CI.
- Add CHANGELOG.md
## [0.1.0] - 2022-09-29
- initial version

View File

@ -1,13 +1,11 @@
//
// FILE: I2CKeyPad8x8.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// VERSION: 0.1.1
// PURPOSE: Arduino library for 8x8 or smaller KeyPad connected to an I2C PCF8575.
// URL: https://github.com/RobTillaart/I2CKeyPad8x8
//
// HISTORY:
// 0.1.0 2022-09-29 initial version
// HISTORY: see changelog.md
#include "I2CKeyPad8x8.h"

View File

@ -2,7 +2,7 @@
//
// FILE: I2CKeyPad8x8.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// VERSION: 0.1.1
// PURPOSE: Arduino library for 8x8 or smaller KeyPad connected to an I2C PCF8575.
// URL: https://github.com/RobTillaart/I2CKeyPad
@ -11,10 +11,10 @@
#include "Wire.h"
#define I2C_KEYPAD8x8_LIB_VERSION (F("0.1.0"))
#define I2C_KEYPAD8x8_LIB_VERSION (F("0.1.1"))
#define I2C_KEYPAD8x8_NOKEY 64
#define I2C_KEYPAD8x8_FAIL 65
#define I2C_KEYPAD8x8_NOKEY 64
#define I2C_KEYPAD8x8_FAIL 65
class I2CKeyPad8x8

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 Rob Tillaart
Copyright (c) 2022-2022 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

View File

@ -13,7 +13,7 @@ Arduino library for 8x8 or smaller KeyPad connected to an I2C PCF8575.
## Description
EXPERIMENTAL (to be tested)
EXPERIMENTAL (first tests ==> OK)
The I2CKeyPad8x8 library implements the reading of a 8x8 keypad by means of a PCF8575.
Smaller keypads, meaning less columns or rows (e.g. 5x4) can be read with it too.
@ -30,19 +30,15 @@ See the conceptual schema below.
PROC PCF8575 KEYPAD
+--------+ +--------+ +--------+
| | | 0|----------|R |
| SDA |--------| 1|----------|O |
| SCL |--------| 2|----------|W |
| | | 3|----------|S |
| SDA |--------| .|----------|O |
| SCL |--------| .|----------|W |
| | | 7|----------|S |
| | | .| | |
| | | .| | |
| | | 8|----------|C |
| | | 9|----------|O |
| | | 10|----------|L |
| | | 11|----------|S |
| | | .| | |
| | | .| | |
| | | 16|----------| |
| | | .|----------|O |
| | | .|----------|L |
| | | 15|----------|S |
+--------+ +--------+ +--------+
```
@ -110,10 +106,17 @@ See examples
## Future
#### must
- update documentation
#### should
- test extensively
- basic working
- basic working (OK)
- interrupts
- keymapping
- performance
- update documentation
- keep in sync with **I2CKeyPad** as much as possible.
#### would

View File

@ -0,0 +1,14 @@
BOARD: Arduino UNO
IDE: 1.8.19
LIB: 0.1.0
examples\I2Ckeypad8x8_demo01\I2Ckeypad8x8_demo01.ino
229100 64 664
229201 64 1324 // floating lines (no pull ups yet).
229300 64 664
153101 35 1324 // key pressed ...
A read just takes 664 us.

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/I2CKeyPad8x8.git"
},
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=I2CKeyPad8x8
version=0.1.0
version=0.1.1
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for a KeyPad connected to a PCF8575.