Skip to content

Commit ce168e3

Browse files
committed
fixing typo
1 parent 9ea31f3 commit ce168e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/mcp4728_simpletest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
mcp4728.channel_a.value = 65535 # Voltage = VDD
99
mcp4728.channel_b.value = int(65535/2) # VDD/2
1010
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
11+
mcp4728.channel_d.value = 0 # 0V
1312

1413

1514
mcp4728.save_settings() # save the current values to the eeprom,making them the default on power up

0 commit comments

Comments
 (0)