Skip to content

Commit

Permalink
Fix: current_draw for led_res to use forward_current properly
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Lin <[email protected]>
  • Loading branch information
Suke0811 and ducky64 authored Sep 26, 2024
1 parent eaaebe9 commit 9b84f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edg/parts/Lcd_Er_Tft1_28_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def contents(self):
self.led_res = self.Block(Resistor(
resistance=(self.pwr.link().voltage.upper() / forward_current.upper(),
self.pwr.link().voltage.lower() / forward_current.lower())))
self.connect(self.led_res.a.adapt_to(VoltageSink(current_draw=(1, 40) * mAmp)), self.pwr)
self.connect(self.led_res.a.adapt_to(VoltageSink(current_draw=forward_current)), self.pwr)
self.connect(self.led_res.b, self.ic.leda)
self.connect(self.pwr, self.ic.ctp_vdd)
self.require(self.ctp_i2c.is_connected() == self.ctp_rst.is_connected())
Expand Down

0 comments on commit 9b84f26

Please sign in to comment.