-
|
Hi, I am in the process of reviewing issues #989 and #991 so that I can implement the I believe it is possible to use the SPI interface with an SX1276 LoRa module but then according to https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/pins/pins.md#spi, there is no SPI API. The lora example and the provider for the Am I missing something, in terms of the difference between an SPI API and being able to set the SPI pins and use them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hi @nickthiru, The comment you surfaced from the Pins documentation is only relevant to our older API for working with hardware pins. Most of the new work going into Moddable SDK projects and examples is instead based on the newer ECMA-419 standard and the Moddable SDK implementation of that standard. SPI works well with the ECMA-419 I/O modules, as you've seen from the code you've discovered. There are also examples available here. The Documentation for ECMA-419 SPI is just the spec itself. This is the relevant section. |
Beta Was this translation helpful? Give feedback.
Hi @nickthiru,
The comment you surfaced from the Pins documentation is only relevant to our older API for working with hardware pins. Most of the new work going into Moddable SDK projects and examples is instead based on the newer ECMA-419 standard and the Moddable SDK implementation of that standard.
SPI works well with the ECMA-419 I/O modules, as you've seen from the code you've discovered. There are also examples available here.
The Documentation for ECMA-419 SPI is just the spec itself. This is the relevant section.