We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea31f3 commit ce168e3Copy full SHA for ce168e3
examples/mcp4728_simpletest.py
@@ -8,8 +8,7 @@
8
mcp4728.channel_a.value = 65535 # Voltage = VDD
9
mcp4728.channel_b.value = int(65535/2) # VDD/2
10
mcp4728.channel_c.value = int(65535/4) # VDD/4
11
-
12
-mcp4728.channel_d.value = int(65535/4) # Vref.INTERNAL/4 * 2 => 2.048/4 * 2 = 2.048/2 = ~ 1.024V
+mcp4728.channel_d.value = 0 # 0V
13
14
15
mcp4728.save_settings() # save the current values to the eeprom,making them the default on power up
0 commit comments