Browse Source

move TODO items from README to main.cpp

main
cinnaboot 3 years ago
parent
commit
effb28d4db
  1. 9
      README
  2. 8
      src/main.cpp

9
README

@ -28,12 +28,3 @@ useful resources:
MCP4921 datasheet:
https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/22248a.pdf
TODO: gate on/off controls, can just use hardware GPIO in digital mode
TODO: add README with wiring instructions for SPI to DAC
TODO: DAC voltage stepping
if we use DAC input 4080 = 5V, then we can do steps of 1/12V on exactly the
correct DAC value. Would then need to set Vref to
DAC: 5V = 4080 / 4095 * Vref, Vref ~= 5.0184

8
src/main.cpp

@ -1,4 +1,12 @@
// TODO: gate on/off controls, can just use hardware GPIO in digital mode
// TODO: update README with wiring instructions for SPI to DAC
// TODO: DAC voltage stepping
// if we use DAC input 4080 = 5V, then we can do steps of 1/12V on exactly
// the correct DAC value. Would then need to set Vref to:
// DAC: 5V = 4080 / 4095 * Vref, Vref ~= 5.0184
#include <cstdio>
#include <cstdlib>

Loading…
Cancel
Save