avsa242 / p2-spin-standard-library

A curated collection of essential Spin2 objects
MIT License
3 stars 3 forks source link

signal.adc.mcp320x.spin2 uses obsolete SPI API #12

Closed avsa242 closed 2 years ago

avsa242 commented 2 years ago

This should be moved to use com.spi.bitbang.spin2 first, then rewritten to use the current API in the SPI engine.

avsa242 commented 2 years ago

Not that simple...this chip seems to require "full-duplex" SPI to read ADC words correctly - the bits start getting shifted out during the write of the 2nd byte (after the 3 MSB configuration bits).