Giter Site home page Giter Site logo

nilsauf / fastesp8266shiftregister Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 55 KB

A shift register library for the ESP8266 controller

Home Page: https://platformio.org/lib/show/11864/FastEsp8266ShiftRegister

C++ 100.00%
esp8266 fast shiftregister

fastesp8266shiftregister's People

Contributors

nilsauf avatar

Watchers

 avatar

fastesp8266shiftregister's Issues

WDT Reset

Hi

I'm facing wdt while using example sketch:

#include <FastEsp8266ShiftRegister.hpp>
constexpr const uint8_t PIN_DS = D5;
constexpr const uint8_t PIN_CP = D6;
constexpr const uint8_t PIN_STCP = D7;

#define SHIFT_COUNT 1

FastEsp8266ShiftRegister shiftRegister(PIN_DS, PIN_CP, PIN_STCP, SHIFT_COUNT);

uint8_t firstValue = 170;
uint8_t secondValue = 85;

void setup()
{
    // put your setup code here, to run once:
    Serial.begin(115200);
}

void loop()
{
    // put your main code here, to run repeatedly:
    shiftRegister.shiftAllOutAndUpdate(&firstValue);
    Serial.print(".");
    delay(500);
    shiftRegister.shiftAllOutAndUpdate(&secondValue);
    Serial.print(".");
    delay(500);
}

Output:

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v00041bf0
~ld

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

>>>stack>>>

ctx: cont
sp: 3ffffe00 end: 3fffffc0 offset: 01a0
3fffffa0:  feefeffe feefeffe feefeffe 402018ac  
3fffffb0:  feefeffe feefeffe 3ffe85dc 40100c29
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v00041bf0
~ld

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

PlatformIO Error: Invalid version string in library.json

BTW, please change the version tag inside library.json to a valid version, PIO issues this error:

ValueError: Invalid version string: '0.0.0+VERSION_TAG':
  File "C:\Users\Hamza\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 180:
    env.SConscript("$BUILD_SCRIPT")
  File "C:\Users\Hamza\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Script\SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "C:\Users\Hamza\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Script\SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "C:\Users\Hamza\.platformio\platforms\espressif8266\builder\main.py", line 238:
    target_elf = env.BuildProgram()
  File "C:\Users\Hamza\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Util.py", line 748:
    return self.method(*nargs, **kwargs)
  File "C:\Users\Hamza\.platformio\penv\Lib\site-packages\platformio\builder\tools\platformio.py", line 62:
    env.ProcessProjectDeps()
  File "C:\Users\Hamza\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Util.py", line 748:
    return self.method(*nargs, **kwargs)
  File "C:\Users\Hamza\.platformio\penv\Lib\site-packages\platformio\builder\tools\platformio.py", line 141:
    project_lib_builder = env.ConfigureProjectLibBuilder()
  File "C:\Users\Hamza\.platformio\packages\tool-scons\scons-local-4.2.0\SCons\Util.py", line 748:
    return self.method(*nargs, **kwargs)
  File "C:\Users\Hamza\.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 1104:
    project.install_dependencies()
  File "C:\Users\Hamza\.platformio\penv\Lib\site-packages\platformio\builder\tools\piolib.py", line 928:
    if lm.get_package(spec):
  File "c:\users\hamza\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 236:
    for pkg in self.get_installed():
  File "c:\users\hamza\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 213:
    pkg.metadata = self.build_metadata(pkg_dir, spec)
  File "c:\users\hamza\.platformio\penv\lib\site-packages\platformio\package\manager\base.py", line 177:
    metadata = PackageMetaData(
  File "c:\users\hamza\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 342:
    self.version = version
  File "c:\users\hamza\.platformio\penv\lib\site-packages\platformio\package\meta.py", line 373:
    else cast_version_to_semver(value)
  File "c:\users\hamza\.platformio\penv\lib\site-packages\platformio\package\version.py", line 36:
    return semantic_version.Version("0.0.0+" + value)
  File "c:\users\hamza\.platformio\penv\lib\site-packages\semantic_version\base.py", line 105:
    major, minor, patch, prerelease, build = self.parse(version_string, partial)
  File "c:\users\hamza\.platformio\penv\lib\site-packages\semantic_version\base.py", line 311:
    raise ValueError('Invalid version string: %r' % version_string)

Originally posted by @HamzaHajeir in #1 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.