-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support esp8266 #1
Comments
aslong as you provide 5v to the radio receiver, see no reason why it shouldn't work |
I am giving it 5v, but cannot seam to get it to work. I am using gpio5 (D1) but no data is coming through. Even tried you demos, but still nothing. On arduino uno everything works fine. |
Ok got it working had to change the below function bool HomeGW::setup(uint8_t pin) { HomeGW::pin = pin; pinMode(pin, INPUT); attachInterrupt(pin, HomeGW::handleInterrupt, CHANGE); // 1 = PIN3 return true; Esp has interrupts on all pins and names them with pin numbers. Thanks |
Good to know 😊 |
So only the test for pin 3 or 2 was failing ? If you make a PR with a test that covers Arduinos and ESP8266 I will accept it. |
You where also doing a pin-2 on the attachInterrupt() so that had to change to. |
Hi maragelis. It would seem you have got this to work (with the fix you posted) so any pointers would be a great help. BTW - my 433Mhz rx works fine on 3.3v! Many thanks |
defined(ESP8266) is an AVR directive built into ESP8266/Arduino Check out my project for ideas https://github.com/maragelis/433MhzToMqttBridge/blob/master/MhzToMqtt.ino |
Hi maragelis. I will certainly check out your project.... |
Works perfectly on atmelavr but I'm not being able to get reading from the same radio on an ESP8266 platform (wemos d1). As my arduino/esp8266 knowledge is not deep enough to understand what was writtner here, my question is if i have to replace function setup on homegw.cpp file? bool HomeGW::setup(uint8_t pin) { Thanks |
before attachInterrupt add delay(2000); |
Is there any chance this can work with an esp8266
The text was updated successfully, but these errors were encountered: