Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb203c17

Browse files
committed
esp8266: Fix reading of pin object for GPIO16.
Pin(16) now works as an input.
1 parent2146cda commitb203c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎esp8266/modpybpin.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ STATIC mp_obj_t pyb_pin_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw,
301301
pyb_pin_obj_t*self=self_in;
302302
if (n_args==0) {
303303
// get pin
304-
returnMP_OBJ_NEW_SMALL_INT(GPIO_INPUT_GET(self->phys_port));
304+
returnMP_OBJ_NEW_SMALL_INT(pin_get(self->phys_port));
305305
}else {
306306
// set pin
307307
pin_set(self->phys_port,mp_obj_is_true(args[0]));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp