nilsauf / fastesp8266shiftregister Goto Github PK
View Code? Open in Web Editor NEWA shift register library for the ESP8266 controller
Home Page: https://platformio.org/lib/show/11864/FastEsp8266ShiftRegister
A shift register library for the ESP8266 controller
Home Page: https://platformio.org/lib/show/11864/FastEsp8266ShiftRegister
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 ---------------
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.