Depending on boards we use some ports cause a shutdown after setting mode for pin, like D16.mode("output").
Testing was done to check speed of different solutions for LED-Matrix(32x64).
Started with a board from Watterott, everything worked fine.
Switching to another board reset with same configuration.
Problem could be drilled down to usage of IO16 and IO17.
D16.mode("output") and I've got a reset.
Most boards don't have pins for IO16 and IO17, so be careful, not to use them accidently
Great - thanks for the update on this - that's a bit tricky.
But if you don't reference D16/D17 in your code you don't get any resets?
Reset only happens, if mode for port is set.
I'm searching a better solution for jshIsPinValid, but nothing found yet.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem