From effb28d4db238fa8629f772743ae8ff65e3cf7cd Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sat, 18 Mar 2023 09:39:30 -0400 Subject: [PATCH] move TODO items from README to main.cpp --- README | 9 --------- src/main.cpp | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README b/README index 2c5d2f1..a5c8a74 100644 --- a/README +++ b/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 - diff --git a/src/main.cpp b/src/main.cpp index 5c8b51c..f453b2e 100644 --- a/src/main.cpp +++ b/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 #include