Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
4523bbb3
Commit
4523bbb3
authored
May 01, 2023
by
Tom Sutcliffe
Committed by
Johny Mattsson
May 13, 2023
Browse files
Fix i2c.setup() for pins >= 32
Which includes SDA and SCL on esp32s2.
parent
7155d719
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/driver_i2c/i2c_sw_master.c
View file @
4523bbb3
...
...
@@ -112,7 +112,7 @@ void i2c_sw_master_gpio_init(uint8_t sda, uint8_t scl)
gpio_config_t
cfg
;
cfg
.
pin_bit_mask
=
1
<<
sda
|
1
<<
scl
;
cfg
.
pin_bit_mask
=
1
ULL
<<
sda
|
1
ULL
<<
scl
;
cfg
.
mode
=
GPIO_MODE_INPUT_OUTPUT_OD
;
cfg
.
pull_up_en
=
GPIO_PULLUP_ENABLE
;
cfg
.
pull_down_en
=
GPIO_PULLDOWN_DISABLE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment