I used D4 for SS since I don’t think it makes a difference which one I use?
I had the oled and already tested it in real life. The project depends on being sunlight readable and fast update (so no eink) and the OLED was literally invisible.
I get around 2Hz like this when using MBED
Around 10Hz non-mbed (which would be okay, but using non-mbed still makes me rewrite the whole bluetooth-code which I honestly don’t understand how to…
I set the clock to 2 MHz and checked the waveform again. 1 byte transfer time is
mbed : 24uS
non-mbed : 8.5uS
The throughput of mbed is about 1/3. The frame rate difference may be the correct result.
I’m also working on a “2-peripheral” version using non-mbed, but I do not even know if it is possible to expand to “2-peripheral” in the first place. I still need more time.
You mean using the Bluefruit-library?
I think there is even an example for this in Adafruit Bluefruit NRF52 libraries → Central → central_bleuart_multi
so I just integrated everything into my codebase again and switch back and forth between hard and soft SPI.
Using soft SPI, I get around 1.5Hz, with hard SPI, I get almost exactly 9Hz - which would look good enough, if I would get any output using the hard SPI-pins.
If you PM me your address, I’m going to gift you one.
Using soft SPI, I get around 1.5Hz, with hard SPI, I get almost exactly 9Hz - which would look good enough, if I would get any output using the hard SPI-pins.
According to the data sheet, the frame frequency is 20 Hz when the clock frequency is 2 MHz. mbed’s hardware SPI throughput is 1/3, so 9 Hz should be sufficient.
Just to confirm, it’s 9Hz in mbed, right?
that’s my main problem yes
mbed and SPI never produced any output to me with the Sharp-display.
I only know the framerate because I log it to the console.
The prototype will be sent by e-mail as soon as it is ready. Please forgive me for the prototype. The comments are in Japanese for the most part. The data is simply millis() and battery voltage.
I would be really happy if you could debug it and use it!
Sorry, I have started a project to connect multiple peripherals to a PC.
I will look into the limitations of mbed’s SPI a bit more.
I have a SPI peripheral that I have connected a Xiao nRF52 board to using the non-mbed board library. I switched board libraries to the mbed-enabled so I could use ArduinoBLE.
The SPI communication no longer works. The board seems to freeze at the first instance of SPI.transfer().
I also tried a Arduino Nano BLE and encountered the same issue of operation freezing at the first SPI.transfer() instance.
Seems to be an mbed software problem, but I haven’t identified it yet.
To be clear, I can switch board library back to non-mbed for the Xiao and SPI works again.