Avatar for ancienthero

ancienthero

Member since Apr 2017 • Last active Oct 2017
  • 4 conversations
  • 19 comments

Most recent activity

    • 4 comments
    • 66 views
  • in Projects
    Avatar for ancienthero

    Thank you!

    Setters are the same but range of variables vary, readDateTime() is different because it returns date object instead of string, new features obviously don't break backward compatibility.

    By the way, how to make minified version on module? is this okay: espruino -m DS3231.js -o DS3231.min.js

  • in Projects
    Avatar for ancienthero

    Hello

    here is my version of DS3231 module, compatible with the javascript date object.
    https://github.com/ancienthero/espruino/­tree/master/modules/DS3231

    use it if you will ;)
    feedback welcome as well

    cheers

  • in News
    Avatar for ancienthero

    looks great!

    • 8 comments
    • 258 views
  • in JavaScript
    Avatar for ancienthero

    Yup E.setTimeZone(..) is nice
    anyway I'm on 1v92.86 and I see travis at 1v92.111 now, is there something new worth mentioning? ;)

    by the way, the new Date class with setters is amazing! it simplified my project a lot

  • in General
    Avatar for ancienthero

    You are right ;)

    When I was buying my espruinos it was only pico and board available

  • in JavaScript
    Avatar for ancienthero

    I've used this one https://www.espruino.com/binaries/travis­/master/espruino_1v92.80_pico_1r3.bin

    works like a charm!

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v92.80 Copyright 2016 G.Williams
    >
    >t = new Date;
    =Date { "ms": 949363217722.27758789062 }
    >t.toString();
    ="Tue Feb 1 2000 00:00:17 GMT+0000"
    >t.setHours(10);
    =949399217722
    >t.toString();
    ="Tue Feb 1 2000 10:00:17 GMT+0000"
    >t.setMinutes(10);
    =949399817722
    >t.toString();
    ="Tue Feb 1 2000 10:10:17 GMT+0000"
    >t.setFullYear(2022);
    =1643710217722
    >t.toString();
    ="Tue Feb 1 2022 10:10:17 GMT+0000"
    >t.setDate(29);
    =1646129417722
    >t.toString();
    ="Tue Mar 1 2022 10:10:17 GMT+0000"
    >t.setMonth(4);
    =1651399817722
    >t.toString();
    ="Sun May 1 2022 10:10:17 GMT+0000"
    > 
    

    Thank you!

  • in General
    Avatar for ancienthero

    This is what I was thinking , pico rev 1.5 or pico pro if you will :)

    • build in watch crystal
    • micro usb instead of type A
    • replace 0.05 GPIO pins with extra 0.1 GPIO pins (0.05 are hard to access unless you surface mount unpinned pico ). I would definitely back it on Kickstarter ;)

    On the other hand a low cost very basic board would be an affordable option for people with limited budgets

Actions