Skip to content

Commit

Permalink
Add Wire1 support for ESP32 (#26)
Browse files Browse the repository at this point in the history
- add Wire1 support for ESP32
- update readme.md
  • Loading branch information
RobTillaart authored Sep 22, 2023
1 parent 7b8d14d commit 1046b3a
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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.3.9] - 2023-09-22
- add Wire1 support for ESP32
- update readme.md


## [0.3.8] - 2023-02-26
- add **getBrightness()**
- moved code to .cpp file (prep 0.4.0)
Expand Down
3 changes: 1 addition & 2 deletions HT16K33.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// FILE: HT16K33.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.3.8
// VERSION: 0.3.9
// DATE: 2019-02-07
// PURPOSE: Arduino Library for HT16K33 4x7segment display
// URL: https://github.com/RobTillaart/HT16K33
Expand Down Expand Up @@ -79,7 +79,6 @@ HT16K33::HT16K33(const uint8_t address, TwoWire *wire)
#if defined (ESP8266) || defined(ESP32)
bool HT16K33::begin(uint8_t sda, uint8_t scl)
{
_wire = &Wire;
if ((sda < 255) && (scl < 255))
{
_wire->begin(sda, scl);
Expand Down
4 changes: 2 additions & 2 deletions HT16K33.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// FILE: HT16K33.h
// AUTHOR: Rob Tillaart
// VERSION: 0.3.8
// VERSION: 0.3.9
// DATE: 2019-02-07
// PURPOSE: Arduino Library for HT16K33 4x7segment display
// http://www.adafruit.com/products/1002
Expand All @@ -13,7 +13,7 @@
#include "Wire.h"


#define HT16K33_LIB_VERSION (F("0.3.8"))
#define HT16K33_LIB_VERSION (F("0.3.9"))


// Characters
Expand Down
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
[![Arduino CI](https://github.com/RobTillaart/HT16K33/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
[![Arduino-lint](https://github.com/RobTillaart/HT16K33/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/HT16K33/actions/workflows/arduino-lint.yml)
[![JSON check](https://github.com/RobTillaart/HT16K33/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/HT16K33/actions/workflows/jsoncheck.yml)
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/HT16K33.svg)](https://github.com/RobTillaart/HT16K33/issues)

[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/HT16K33/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/RobTillaart/HT16K33.svg?maxAge=3600)](https://github.com/RobTillaart/HT16K33/releases)
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/HT16K33.svg)](https://registry.platformio.org/libraries/robtillaart/HT16K33)


# HT16K33
Expand Down Expand Up @@ -55,7 +58,7 @@ get leading/trailing zero's correctly.

## Interface

```CPP
```cpp
#include "HT16K33.h"
```

Expand Down Expand Up @@ -230,7 +233,12 @@ Mainly for a 0.4.0
- [status] dd.d
- add examples
- car battery monitor (voltage divider & analogRead)

-
- add more "special chars"?
- #define HT16K33_P Pascal / Pressure 0x73
- #define HT16K33_J joule 0x0E
- #define HT16K33_H humidity 0x76


#### Wont (unless sponsored)

Expand All @@ -240,4 +248,16 @@ Mainly for a 0.4.0
- flip every digit (function to overwrite the char array)
- **HUD(bool hud = false)** = Heads Up Display
- flip every digit
- **lastTime()** in millis too much overhead.
- add special chars to keywords? nope
- **readCache(int n)** access internal cache => dumpSerial()


## 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,

4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"type": "git",
"url": "https://github.com/RobTillaart/HT16K33.git"
},
"version": "0.3.8",
"version": "0.3.9",
"license": "MIT",
"frameworks": "arduino",
"frameworks": "*",
"platforms": "*",
"headers": "HT16K33.h"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=HT16K33
version=0.3.8
version=0.3.9
author=Rob Tillaart <[email protected]>
maintainer=Rob Tillaart <[email protected]>
sentence=Arduino Library for HT16K33 I2C 4x7segment display
Expand Down

0 comments on commit 1046b3a

Please sign in to comment.