Skip to content

Issue with esp8266 #7

@Brndyk

Description

@Brndyk

Hello,
I use the same code (Of course I adjusted the pins) on my Arduino UNO and an esp8266 (nodemcu).
On the Arduino I got the expected result but on the esp8266 I got nothing.

#include "SevSegShift.h"

#define SHIFT_PIN_DS   D0 
#define SHIFT_PIN_STCP D1
#define SHIFT_PIN_SHCP D2

SevSegShift sevseg(SHIFT_PIN_DS, SHIFT_PIN_SHCP, SHIFT_PIN_STCP); 

void setup() {
  byte numDigits = 8;
  byte digitPins[] = {11, 10, 9, 8, 15, 14, 13, 12};
  byte segmentPins[] = {0, 1, 2, 3, 4, 5, 6,  7};
  bool resistorsOnSegments = false;
  byte hardwareConfig = COMMON_ANODE;
  bool updateWithDelays = false;
  bool leadingZeros = false;
  bool disableDecPoint = false;

  sevseg.begin(hardwareConfig, numDigits, digitPins, segmentPins, resistorsOnSegments,
  updateWithDelays, leadingZeros, disableDecPoint);
  sevseg.setBrightness(100);
}

void loop() {
  sevseg.setNumber(12345678);
  sevseg.refreshDisplay();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions