• All right !
    So:
    Thanks to @Frida, I checked few versions of the Espruino firmwares & found one working:1V50 ( yup, a nice release from 2014-02-06 ;p )

    Heading to the http://www.espruino.com/ReferenceSTM32F3­DISCOVERY page, I hacked something up to better visualize the overlay legends for the row of pins: this solution is the best I have in mind ( doesn't move the pins legends ), involves no modification of the page html structure & is purely css.
    I didn't take the time to check if other boards overlay legends had the same overlapping problem, but I think this solution may come quite handy for some :)

    // proposal for the ReferenceSTM32F3DISCOVERY page ( & others ? )
    // generic css way to prevent overlapping pin rows legends ;)
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#left](http://forum.espruino.com/search­/?q=%23left) { opacity: 0.1; }
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#left2](http://forum.espruino.com/searc­h/?q=%23left2) { opacity: 0.1; }
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#right](http://forum.espruino.com/searc­h/?q=%23right) { opacity: 0.1; }
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#right2](http://forum.espruino.com/sear­ch/?q=%23right2) { opacity: 0.1; }
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#left](http://forum.espruino.com/search­/?q=%23left):hover { opacity: 1; z-index: 10; }
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#left2](http://forum.espruino.com/searc­h/?q=%23left2):hover { opacity: 1; z-index: 10; }
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#right2](http://forum.espruino.com/sear­ch/?q=%23right2):hover { opacity: 1; z-index: 10; }
    [#boardcontainer](http://forum.espruino.­com/search/?q=%23boardcontainer):hover [#right](http://forum.espruino.com/searc­h/?q=%23right):hover { opacity: 1; z-index: 10; }
    

    This got me wondering if we could have ( or if there is ) a way to have js as well as css for /boards/STM32F3DISCOVERY.py & others ?

    board["_js"] = """
    /* Espruino - prevent pins overlay legends from overlapping when hovering */
    var customStyle = document.createElement('style');
    customStyle.textContent = '#boardcontainer:hover [#left](http://forum.espruino.com/search­/?q=%23left) { opacity: 0.1; }' +
      '#boardcontainer:hover [#left2](http://forum.espruino.com/searc­h/?q=%23left2) { opacity: 0.1; }' +
      '#boardcontainer:hover [#right](http://forum.espruino.com/searc­h/?q=%23right) { opacity: 0.1; }' +
      '#boardcontainer:hover [#right2](http://forum.espruino.com/sear­ch/?q=%23right2) { opacity: 0.1; }' +
      '#boardcontainer:hover [#left](http://forum.espruino.com/search­/?q=%23left):hover { opacity: 1; z-index: 10; } ' +
      '#boardcontainer:hover [#left2](http://forum.espruino.com/searc­h/?q=%23left2):hover { opacity: 1; z-index: 10; } ' +
      '#boardcontainer:hover [#right2](http://forum.espruino.com/sear­ch/?q=%23right2):hover { opacity: 1; z-index: 10; } ' +
      '#boardcontainer:hover [#right](http://forum.espruino.com/searc­h/?q=%23right):hover { opacity: 1; z-index: 10; } ';
    document.body.appendChild(customStyle);
    """
    

    This being said, I don't know yet which file to edit to add a little more content to the generated page ( espruino.com/ReferenceSTM32F3DISCOVERY ): I took some notes on the LEDS positions, colors & mapping that could be neat to have on this page as a reminder

    pin onboard label Espruino label color position
    E9 LD3 LED1 RED UP
    E8 LD4 LED2 BLUE UP-LEFT
    E10 LD5 LED3 ORANGE UP-RIGHT
    E15 LD6 LED4 GREEN LEFT
    E11 LD7 LED5 GREEN RIGHT
    E14 LD8 LED6 ORANGE DOWN-LEFT
    E12 LD9 LED7 BLUE DOWN-RIGHT
    E13 LD10 LED8 RED DOWN

    I could as well add code for the supported* onboard peripherals
    *I read CAN is not supported ( or is it ? ), but I'm wondering about the 'audio' pins ..

    Last but not least, I wonder if there is a typo in one of the labels in the corresponding .py file ?

    // https://github.com/espruino/Espruino/blo­b/master/boards/STM32F3DISCOVERY.py#L78
     'MEMS' : { 'device' : 'LSM303DLHC)', // is the ')' at the end ok ?
    

    This being said, hopefully @Gordon has an idea on how to fix the 'broken' USB & I'll learn the necessary to free him the time it 'd take to implement the fixes ^^ ( to find where it 'broke', the 1st thing I think about is testing firmwares from the 1V50 one up to where it no longer work & then check the diffs between their respective sources, but I don't know how much & which files are :/ )

    I'll digg few more tuts on the stm32f3 to better grasp the subject before being able to investigate the troubles & also port the xbox360 controller code to it ( .. )

    now onto doing few quick tests with the freshly flashed Espruino 1V50 firmware ;)

About

Avatar for stephaneAG @stephaneAG started