File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44import time
55import board
66import busio
7- from adafruit_emc2101 .emc2101_lut import EMC2101_LUT
7+ from adafruit_emc2101 .emc2101_lut import EMC2101_LUT as EMC2101
88
99i2c = busio .I2C (board .SCL , board .SDA )
1010
1111FAN_MAX_RPM = 1700
12- emc = EMC2101_LUT (i2c )
12+ emc = EMC2101 (i2c )
1313emc .manual_fan_speed = 50
1414time .sleep (1 )
1515emc .lut [27 ] = 25
Original file line number Diff line number Diff line change 44import time
55import board
66import busio
7- from adafruit_emc2101 .emc2101_lut import EMC2101_LUT
7+ from adafruit_emc2101 .emc2101_lut import EMC2101_LUT as EMC2101
88
99i2c = busio .I2C (board .SCL , board .SDA )
1010
11- emc = EMC2101_LUT (i2c )
11+ emc = EMC2101 (i2c )
1212emc .set_pwm_clock (use_preset = False )
1313# Datasheet recommends using the maximum value of 31 (0x1F)
1414# to provide the highest effective resolution
You can’t perform that action at this time.
0 commit comments