Code Monkey home page Code Monkey logo

Comments (7)

gfwilliams avatar gfwilliams commented on July 4, 2024

Hi - that 'error' in the IDE is just a warning about code style - I don't believe that is the reason for your problems...

I have just installed 2v21 on my original Tiny Word Clock from the https://www.espruino.com/Tiny+Word+Clock tutorial, re-uploaded the exact code and it works perfectly with all the same LEDs as before.

Is it possible that maybe the first JS code you used, from before you updated the firmware, you'd used different pin numbers? You might have soldered your board on one pin out, or maybe the board is soldered to the LED matrix 180 degrees out from the way I did it, in which case the ANODES and CATHODES variables would need changing?

from espruinodocs.

brendonhatcher avatar brendonhatcher commented on July 4, 2024

Thanks for replying. I don't think I did anything unusual in my original setup (years ago). Is there any way to output the word that it is trying to display to the Web IDE?

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 4, 2024

Sure, yes - if you go to the function function outputWords(wordList) { and add console.log(wordList) after that line then it should tell you

from espruinodocs.

brendonhatcher avatar brendonhatcher commented on July 4, 2024

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 4, 2024

Well, I think you probably must have had some code change in there! I vaguely remember someone asking a question about rotation a while back so it might have been you?

After var g = Graphics.createArrayBuffer(8,8,1); just add g.setRotation(2); and I bet that'll sort it for you!

from espruinodocs.

brendonhatcher avatar brendonhatcher commented on July 4, 2024

from espruinodocs.

gfwilliams avatar gfwilliams commented on July 4, 2024

Great! I'll put a comment in the tutorial code about rotation

from espruinodocs.

Related Issues (20)

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.