Skip to content

Commit 1046b3a

Browse files
authored
Add Wire1 support for ESP32 (#26)
- add Wire1 support for ESP32 - update readme.md
1 parent 7b8d14d commit 1046b3a

File tree

6 files changed

+34
-9
lines changed

6 files changed

+34
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
9+
## [0.3.9] - 2023-09-22
10+
- add Wire1 support for ESP32
11+
- update readme.md
12+
13+
814
## [0.3.8] - 2023-02-26
915
- add **getBrightness()**
1016
- moved code to .cpp file (prep 0.4.0)

HT16K33.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: HT16K33.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.3.8
4+
// VERSION: 0.3.9
55
// DATE: 2019-02-07
66
// PURPOSE: Arduino Library for HT16K33 4x7segment display
77
// URL: https://github.com/RobTillaart/HT16K33
@@ -79,7 +79,6 @@ HT16K33::HT16K33(const uint8_t address, TwoWire *wire)
7979
#if defined (ESP8266) || defined(ESP32)
8080
bool HT16K33::begin(uint8_t sda, uint8_t scl)
8181
{
82-
_wire = &Wire;
8382
if ((sda < 255) && (scl < 255))
8483
{
8584
_wire->begin(sda, scl);

HT16K33.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: HT16K33.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.3.8
5+
// VERSION: 0.3.9
66
// DATE: 2019-02-07
77
// PURPOSE: Arduino Library for HT16K33 4x7segment display
88
// http://www.adafruit.com/products/1002
@@ -13,7 +13,7 @@
1313
#include "Wire.h"
1414

1515

16-
#define HT16K33_LIB_VERSION (F("0.3.8"))
16+
#define HT16K33_LIB_VERSION (F("0.3.9"))
1717

1818

1919
// Characters

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
[![Arduino CI](https://github.com/RobTillaart/HT16K33/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
33
[![Arduino-lint](https://github.com/RobTillaart/HT16K33/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/HT16K33/actions/workflows/arduino-lint.yml)
44
[![JSON check](https://github.com/RobTillaart/HT16K33/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/HT16K33/actions/workflows/jsoncheck.yml)
5+
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/HT16K33.svg)](https://github.com/RobTillaart/HT16K33/issues)
6+
57
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/HT16K33/blob/master/LICENSE)
68
[![GitHub release](https://img.shields.io/github/release/RobTillaart/HT16K33.svg?maxAge=3600)](https://github.com/RobTillaart/HT16K33/releases)
9+
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/HT16K33.svg)](https://registry.platformio.org/libraries/robtillaart/HT16K33)
710

811

912
# HT16K33
@@ -55,7 +58,7 @@ get leading/trailing zero's correctly.
5558

5659
## Interface
5760

58-
```CPP
61+
```cpp
5962
#include "HT16K33.h"
6063
```
6164

@@ -230,7 +233,12 @@ Mainly for a 0.4.0
230233
- [status] dd.d
231234
- add examples
232235
- car battery monitor (voltage divider & analogRead)
233-
236+
-
237+
- add more "special chars"?
238+
- #define HT16K33_P Pascal / Pressure 0x73
239+
- #define HT16K33_J joule 0x0E
240+
- #define HT16K33_H humidity 0x76
241+
234242

235243
#### Wont (unless sponsored)
236244

@@ -240,4 +248,16 @@ Mainly for a 0.4.0
240248
- flip every digit (function to overwrite the char array)
241249
- **HUD(bool hud = false)** = Heads Up Display
242250
- flip every digit
251+
- **lastTime()** in millis too much overhead.
252+
- add special chars to keywords? nope
253+
- **readCache(int n)** access internal cache => dumpSerial()
254+
255+
256+
## Support
257+
258+
If you appreciate my libraries, you can support the development and maintenance.
259+
Improve the quality of the libraries by providing issues and Pull Requests, or
260+
donate through PayPal or GitHub sponsors.
261+
262+
Thank you,
243263

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/HT16K33.git"
1717
},
18-
"version": "0.3.8",
18+
"version": "0.3.9",
1919
"license": "MIT",
20-
"frameworks": "arduino",
20+
"frameworks": "*",
2121
"platforms": "*",
2222
"headers": "HT16K33.h"
2323
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=HT16K33
2-
version=0.3.8
2+
version=0.3.9
33
author=Rob Tillaart <rob.tillaart@gmail.com>
44
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
55
sentence=Arduino Library for HT16K33 I2C 4x7segment display

0 commit comments

Comments
 (0)