You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • Do you agree with my #18 assessment

    Absolutely. Thinking on how to add one more transistor on each line there. There is enough room, but I want to minimize the mess.

    So does this board then only use hardware SPI? e.g. is it capable of software SPI?

    I have no idea. The datasheet says that there is an SPI on the B5 pin. I am using Espruino's SPI.setup function. When I use it on the B5 port it is ok. When I use it on B6 port there is an error "ERROR: Pin B6 is not capable of SPI1 MOSI". I don't know what characteristics a port should have to be capable of a software SPI. As I mentioned earlier, there is this line in Espruino's 2.0 update notes:

    Software Serial Transmit and Receive on any pin

    Isn't this an SPI? This looks very promising.

  • EDIT: Post #24 with link to post created around the same time, arrived simultaneously as I posted #25 Apparently answers what I mentioned below, I was unable to check.

    EDIT2: (3 hours later) disregard edit apparent above - either a load of doc pages have to be fine tuned (which would have been completed before 2V0 press release) or my original hunch stands based on:

    https://www.espruino.com/Reference#t_l_S­PI_setup

    'Some boards such as those based on nRF52 chips can have SPI on any pins'

    'On STM32F1-based parts, you cannot mix AF and non-AF pins (SPI pins are usually grouped on the chip - and you can't mix pins from two groups)'



    When I saw pin B5 I immediately thought, must be running on a Pico as one of the three hardware SPI pins is B5

    Just checked: (is that the same as your project?)

    https://www.espruino.com/ReferenceSTM32V­LDISCOVERY

    and that reference indicates 2 hdwr SPI pins, also B5 and B15 similarly to the Pico

    https://www.espruino.com/Pico

    Now if one checks the reference of

    https://www.espruino.com/MDBT42Q

    https://www.espruino.com/Pixl.js

    ex: '32 x GPIO (capable of PWM, SPI, I2C, UART)'

    Then I saw your error:

    'ERROR: Pin B6 is not capable of SPI1 MOSI'

    I thought I saw that error in the source, close but not exact,

    https://github.com/espruino/Espruino/blo­b/master/libs/neopixel/jswrap_neopixel.c­

    but I did find this on Line 92

    '* On some platforms like STM32, pins capable of hardware SPI MOSI are required.'

    So, although I would verify this with @Gordon, as the older boards (that I am familiar with) required hardware SPI, I have made the assumption, without further checking, that the new 2V0 software SPI feature was available on the newer hardware, the Pixl and MDBT42Q

    I'll agree that in the link you mentioned that this topic could be mis-understood.

About

Avatar for Robin @Robin started