'I think it was because some header files were missing, but I am not sure what and how to include them'
Locate the heading 'constructor SPI' from the 'Reference' page link above and click on the right facing arrow adjacent to that heading. This will link to:
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.
Sun 2019.10.13
Should also be
var d = new Date()
in order for second line to be valid ;) ;)This will be of help using the Date functions:
Binary to Decimal, can't go wrong with the tutorials at W3Schools:
Is it possible that SPI is not being used correctly concept-wise? (for read write)
Locate the heading 'constructor SPI' from the 'Reference' page link above and click on the right facing arrow adjacent to that heading. This will link to:
showing that SPI is part of the firmware build and no other 'includes' are needed.
Would you provide the link to the source code or tutorial that is being worked from please.
*If* this is the correct data sheet:
Data byte missing?
Chip Select 'Actually' going lo and not inadvertently inverted?
Does the Pico MOSI actually go to the inertial device MOSI and not flipped with MISO?
It appears the inertial module is programmed very similar to the GPS device. This link:
might provide some insight on how I solved communication using the FX2 Logic Analyzer. Saved a ton of time rather than just guessing. . . .