aboutsummaryrefslogtreecommitdiffstats
path: root/fw/tests
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-11-08 11:03:02 -0500
committerSam Anthony <sam@samanthony.xyz>2025-11-08 11:03:02 -0500
commitbe26e8497b510d4bf441f9d9cd3207d02b058bc0 (patch)
tree85c64c4e67679451d6454e16e89c3097f4ac76ac /fw/tests
parentb6f66e394ad3f18b3dccea674b5c041f5a22fb41 (diff)
downloadcan-gauge-interface-be26e8497b510d4bf441f9d9cd3207d02b058bc0.zip
specify dac voltage in millivolts
Diffstat (limited to 'fw/tests')
-rw-r--r--fw/tests/system/dac_systest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fw/tests/system/dac_systest.c b/fw/tests/system/dac_systest.c
index 47aefb9..50b600a 100644
--- a/fw/tests/system/dac_systest.c
+++ b/fw/tests/system/dac_systest.c
@@ -13,7 +13,10 @@ main(void) {
spiInit();
dacInit();
- dacSet1a(252u); // 1.23V
+ dacSet1a(123); // 0.123V
+ dacSet1b(345); // 0.345V
+ dacSet2a(1230); // 1.230V
+ dacSet2b(3450); // 3.450V
for (;;) {