{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/2383","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/2383/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/2383/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/2383/events","html_url":"https://github.com/esp8266/Arduino/issues/2383","id":170647693,"number":2383,"title":"Workaround to use D0/GPIO16 for DHT, SPI or I2C? (nodemcu)","user":{"login":"supersjimmie","id":16191439,"avatar_url":"https://avatars.githubusercontent.com/u/16191439?v=3","gravatar_id":"","url":"https://api.github.com/users/supersjimmie","html_url":"https://github.com/supersjimmie","followers_url":"https://api.github.com/users/supersjimmie/followers","following_url":"https://api.github.com/users/supersjimmie/following{/other_user}","gists_url":"https://api.github.com/users/supersjimmie/gists{/gist_id}","starred_url":"https://api.github.com/users/supersjimmie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supersjimmie/subscriptions","organizations_url":"https://api.github.com/users/supersjimmie/orgs","repos_url":"https://api.github.com/users/supersjimmie/repos","events_url":"https://api.github.com/users/supersjimmie/events{/privacy}","received_events_url":"https://api.github.com/users/supersjimmie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-11T13:37:44Z","updated_at":"2016-08-11T14:53:02Z","closed_at":null,"body":"### Basic Infos\r\nWhile there are physically enough pins their limitations cause my problem.\r\n\r\n#### Hardware\r\nHardware:\t\t\tNodeMCU v2\r\nCore Version:      \t2.2.0 / 2.3.0\r\n\r\n### Description\r\nI am running out of free pins because I want to use SPI, I2C, onewire, DHT and softwareserial on one NodeMCU:\r\n- SPI has 4 fixed pins.\r\n- SPI has 2 fixed pins.\r\n- softwareserial is now on pin GPIO0 (which I need to disconnect to boot properly: GPIO0 limitation).\r\nSoftwareserial is needed because I need to read an inverted signal and I need the original serial for logging.\r\n- DHT is on pin GPIO3.\r\n- I managed to get onewire on GPIO10.\r\n\r\nProblem description\r\nMy free GPIO's are 6, 7, 8, 9 and 16.\r\nEven in DIO mode, GPIO 6-9 are not usable, the module crashes when I try to use them. (hardware mod is not an option for me)\r\nSince softwareserial on GPIO0 (D3 pin) causes boot problems, I need to move it to another pin, or I need to free another pin so I can then move softwareserial to that pin.\r\nSo I guess I need to put something on GPIO16 (D0 pin).\r\n\r\n### Settings in IDE\r\n\r\nModule:  \t\t\tNodeMCU 1.0 (ESP-12E Module)\r\nFlash Mode:\t\t\tdio\r\nUpload Using:\t\tSERIAL\r\n\r\n\r\nMy question is, does anyone know how to put either of those in GPIO16:\r\ndht, softwareserial, i2c, spi?"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/239185612","html_url":"https://github.com/esp8266/Arduino/issues/2383#issuecomment-239185612","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/2383","id":239185612,"user":{"login":"igrr","id":4349050,"avatar_url":"https://avatars.githubusercontent.com/u/4349050?v=3","gravatar_id":"","url":"https://api.github.com/users/igrr","html_url":"https://github.com/igrr","followers_url":"https://api.github.com/users/igrr/followers","following_url":"https://api.github.com/users/igrr/following{/other_user}","gists_url":"https://api.github.com/users/igrr/gists{/gist_id}","starred_url":"https://api.github.com/users/igrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrr/subscriptions","organizations_url":"https://api.github.com/users/igrr/orgs","repos_url":"https://api.github.com/users/igrr/repos","events_url":"https://api.github.com/users/igrr/events{/privacy}","received_events_url":"https://api.github.com/users/igrr/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T14:53:02Z","updated_at":"2016-08-11T14:53:02Z","body":"Pin 16 doesn't have an interrupt associated with it, so any function which uses interrupts will not work with this pin. I2C doesn't use interrupts, and some DHT libraries also don't use interrupts. I would say that using pin 16 for I2C is a pretty safe choice.\r\n"}}
{"actor":{"display_login":"igrr"}}