diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 11:03:02 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 11:03:02 -0500 |
| commit | be26e8497b510d4bf441f9d9cd3207d02b058bc0 (patch) | |
| tree | 85c64c4e67679451d6454e16e89c3097f4ac76ac /fw/tests/system | |
| parent | b6f66e394ad3f18b3dccea674b5c041f5a22fb41 (diff) | |
| download | can-gauge-interface-be26e8497b510d4bf441f9d9cd3207d02b058bc0.zip | |
specify dac voltage in millivolts
Diffstat (limited to 'fw/tests/system')
| -rw-r--r-- | fw/tests/system/dac_systest.c | 5 |
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 (;;) { |