Skip to content

Commit

Permalink
Add i2c pullups
Browse files Browse the repository at this point in the history
  • Loading branch information
mawildoer committed Oct 16, 2024
1 parent 8b212f7 commit c9c6718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions elec/src/base.ato
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ module Base:
_led = new SK6805EC20
uc.io1 ~ _led.din.io
power_3v3 ~ _led.power
signal led_dout ~ _led.dout.io

## I2C for display
display = new Header4P
Expand All @@ -93,8 +94,8 @@ module Base:
scl_pullup = new Resistor
sda_pullup.value = i2c_pullup_strength
scl_pullup.value = i2c_pullup_strength
display.i2c.sda ~ sda_pullup.p1; sda_pullup.p2 ~ power_3v3
display.i2c.scl ~ scl_pullup.p1; scl_pullup.p2 ~ power_3v3
display.i2c.sda ~ sda_pullup.p1; sda_pullup.p2 ~ power_3v3.vcc
display.i2c.scl ~ scl_pullup.p1; scl_pullup.p2 ~ power_3v3.vcc


module BattBase from Base:
Expand Down

0 comments on commit c9c6718

Please sign in to comment.