mirror of https://github.com/arendst/Tasmota.git
Update xdsp_11_sevenseg.ino
This commit is contained in:
parent
6254c9a35c
commit
8b722e7a4f
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
xdsp_03_matrix.ino - Display 8x8 matrix support for Tasmota
|
xdsp_11_sevenseg.ino - Display seven segment support for Tasmota
|
||||||
|
|
||||||
Copyright (C) 2020 Theo Arends and Adafruit
|
Copyright (C) 2020 Theo Arends and Adafruit
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
#ifdef USE_DISPLAY_SEVENSEG
|
#ifdef USE_DISPLAY_SEVENSEG
|
||||||
|
|
||||||
#define XDSP_11 11
|
#define XDSP_11 11
|
||||||
#define XI2C_46 46 // See I2CDEVICES.md
|
#define XI2C_47 47 // See I2CDEVICES.md
|
||||||
|
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include <Adafruit_GFX.h>
|
#include <Adafruit_GFX.h>
|
||||||
|
@ -268,7 +268,7 @@ void SevensegRefresh(void) // Every second
|
||||||
|
|
||||||
bool Xdsp11(uint8_t function)
|
bool Xdsp11(uint8_t function)
|
||||||
{
|
{
|
||||||
if (!I2cEnabled(XI2C_46)) { return false; }
|
if (!I2cEnabled(XI2C_47)) { return false; }
|
||||||
|
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue