Avatar for user113695

user113695

Member since Jun 2020 • Last active Dec 2020
  • 6 conversations
  • 13 comments

JavaScript novice and tinkerer.

Most recent activity

  • in Bangle.js
    Avatar for user113695

    Looks like you have an extra comma "," after the last closing curly bracket in your apps.json file and you are missing a final closing square bracket "]".

  • in Bangle.js
    Avatar for user113695

    Great, that sounds very useful.
    How do you generate the agps data to be uploaded - I briefly looked at your HTML file, is this something you process server-side every day? Looks like the binary files in http://www.espruino.com/agps are all time-stamped sometime yesterday.
    Marko

  • in Bangle.js
    Avatar for user113695

    Hi,
    Is the graphics frame buffer on the Bangle memory-mapped and accessible from within JS? Or is data transferred in chunks to the LCD controller via SPI?
    Thanks,
    Marko

  • in Bangle.js
    Avatar for user113695

    Thanks for adding the compiler flags, it works beautifully. I put in a pull request for the app to be added to the app loader.

  • in Bangle.js
    Avatar for user113695

    Hi,
    This is a bit of an app-store policy question:
    I wrote an STL viewer app (STL is a relatively simple file format for representing 3d models and is often used in the hobbyist 3d printing realm). The app can read ASCII formatted STL files and displays a shaded 3d view of its contents that can be rotated around on the watch screen (see attached image).
    I concede this is probably not the most useful app for a smartwatch, but perhaps it is still worth adding to the app store.
    However, to get even marginally useful framerates for all but the very simplest models, I ended up doing a lot of the linear algebra and data manipulations in inline C using 32 bit floats and the processor's FPU (thanks to @fanoush for figuring out how to do that). For the FPU code to compile I had to host my own local Espruino compiler.
    Therefore, in order for others to install the app on their watch the app store version would have to contain a binary blob of the compiled routines (encapsulated in a base64 string). Obviously I would provide the C code as well, but it would be much harder for the casual user to play around with the code than with a strictly JS-only app.
    Any thoughts on this?
    Thanks,
    Marko

  • in General
    Avatar for user113695

    Hi,
    Is there a limit to the number of arguments that can be passed to an inlined C function?
    I get a message

    Uncaught Error: Error Parsing signature at argument number 6

    when attempting to set up an inline C function with 6 arguments. Everything appears fine up to 4 arguments.
    Thanks,
    Marko

Actions