OPEnSLab-OSU / ednaServer

GNU Affero General Public License v3.0
4 stars 0 forks source link

Note different CS SPI pin for SD Card on Hypnos #71

Open NathanJesudason opened 1 year ago

NathanJesudason commented 1 year ago

Describe the bug

While the SD CS pin is 10 for eDNA, it's 11 for Hypnos. Because we had set the shift reg clock pin to 11, normally this wouldn't cause issues because it's still set to output mode (and we wouldn't really test with shift registers on a hypnos). But when I removed those constants on the SPI branch, the pinmode for 11 was never set so SD card reading didn't work. In the future, we need that to be a pin that changes between LIVE (eDNA) and DEBUG (Hypnos)

Expected behavior Debug mode should be ready for Hypnos without having to change the code.

Additional context Acceptance Criterion: Add pin change to Debug mode, and note that shift registers aren't expected to run on a sampler in debug mode