Avatar for Mrbbp


Member since Mar 2017 • Last active Oct 2020
  • 27 conversations

I'm newb with espruino, not with arduino, not with js...
But i'm not a coding ninja

Most recent activity

  • in Pico / Wifi / Original Espruino
    Avatar for Mrbbp

    Oh gorgeous!
    Thanks a bunch for that solution. i use the software on hardware i2c1 (b6,b7). It avoid me to unsoldering.
    It works great!
    nevermind, strange to use software i2c when there is hardware i2C.

    it's a beautifull rainy day

  • in Pico / Wifi / Original Espruino
    Avatar for Mrbbp


    it's the second time i'm asking help for this init i2C problem...
    This time, i play with a small SSD1306 oled screen.
    in 2017 i build some pieces with this screen and picos and every time i switch on the build, the screen init correctly.
    this week i start a new project with this display (same screen batch from 2017) but i have lot of pb to initialize the screen with a boring timeout and a busy error.

    Have you any idea ?
    retrofit with an old firmware?
    is it possible to have an old google app version? (which works)
    I just want to have a(n) (art)piece working (as previously). I'm suppose this not a hardware pb but a software pb...
    if i use my old code, it does not work as expected (as the 2017 batch)

    i work with espruino pico 2.06 firmware and googl app ide (not the online one) cause i use custom local font.

  • in General
    Avatar for Mrbbp

    ok, thanks for your time.

    i extend toUpperCase() to upperCase French diacritic accents

    String.prototype.toUpperCaseFr = function toUpperCaseFr() {
        return this.toUpperCase().replace(/à/gm, "À").replace(/â/gm, "Â").replace(/é/gm, "É").replace(/è/gm, "È").replace(/ê/gm, "Ê").replace(/ë/gm, "Ë").replace(/î/gm, "Î").replace(/ï/gm, "Ï").replace(/ô/gm, "Ô").replace(/ö/gm, "Ö").replace(/û/gm, "Û").replace(/ü/gm, "Ü").replace(/ù/gm, "Ù").replace(/ç/gm, "Ç").replace(/œ/gm,"Œ");

    it's working.


  • in General
    Avatar for Mrbbp

    Hello @Gordon,
    nope, minification does not help.
    i'll write my own toUpperCaseDiacritic()


  • in General
    Avatar for Mrbbp

    the problem is: it was working, but not now!

  • in JavaScript
    Avatar for Mrbbp

    If i upperCase string with accents, it does not work on accents!

    let txt= "béèàîâ";
    txt = txt.toUpperCase();
    console.log(txt); // Béèàîâ
    let txtUp = "bÉÈÀÎÂ";
    txtUp = txtUp.toUpperCase();
    console.log(txtUp); // BÉÈÀÎÂ
    for( let c of txt) {
      console.log(c, c.charCodeAt(0));
    for( let c of txtUp) {
      console.log(c, c.charCodeAt(0));

    espruino pico firmware 2v05.100 chrome appweb ide 0.73.7

  • in General
    Avatar for Mrbbp

    found a way to declare my accents, by using their ascii code (but it's less readable by human)