DAC Lib
Dependents: Cube_Mini_Solution Cube_Mini_Solution
Revision 8:28af46e7207f, committed 2020-05-29
- Comitter:
- BoulusAJ
- Date:
- Fri May 29 11:34:05 2020 +0000
- Parent:
- 7:5cfc0f623d5b
- Commit message:
- Slight Modifications on V1.2
Changed in this revision
mcp4725.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/mcp4725.cpp Fri May 08 17:01:46 2020 +0000 +++ b/mcp4725.cpp Fri May 29 11:34:05 2020 +0000 @@ -55,7 +55,7 @@ { - int dac_value_2 = (int) (0xFFF * (dac_value/5.0f) ); + int dac_value_2 = (int) (0xFFF * (dac_value/5.029f) ); // Divide dac_value by the reference voltage // Optimally the reference voltage is exactly 5.0V but this is not the case here. // The Ref voltage is 5.029V char data[3]={0}; int write_command;