@DrAzzy I did what MaximumOctopus did and looked at the pin states with an oscilloscope. In the case of SPI, the speed of execution of the digitalWrites takes a lot of the execution time.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@DrAzzy I did what MaximumOctopus did and looked at the pin states with an oscilloscope. In the case of SPI, the speed of execution of the digitalWrites takes a lot of the execution time.