-
Notifications
You must be signed in to change notification settings - Fork 724
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
Allow gpio pin assignments to be changed #1
Comments
I'm wondering this as well. GPIO 0 and 2 (which ARE broken out on the ESP-01) are both used for status LEDs according to the README. If that's correct, then no, it won't work on the 01. This project looks like it exactly suits my needs, so I assumed the 01 wouldn't work and ordered an ESP-12 to try with. Still waiting on it, but GPIO 12 and 13 are available there, so it should work. However, the ESP-01 is more appealing if you're "slaving" the ESP to another microcontroller. It's much smaller in (almost) bread-board-friendly form and you don't really need the extra pins. I think it would be better to use GPIO 0 and 2 to reset the "master" boards, and use the less-available 12 and 13 for status LEDs. Unless there is some technical issue that prevents this. I have no idea about programming the ESP itself. |
The source or binary is not usable with the -01 module as-is. I started with a -01 myself and used gpio0/2 as you guys say. The annoying thing is that the ESP requires these pins to be tied high at boot (and gpio2 low for reflashing). By putting the LEDs on these pins I make double-use of them as pull-ups and I don't end up with side-effects when driving them low to reflash the ESP. It would be relatively straight-forward to change the pins in the code. It's something I want to make easier, but I don't know that I will get to it this week. |
Ah. That makes sense. Forgot that those are used to flash the esp itself.
|
I had already ordered a -01, it's still in the mail. Without having it in front of me I don't have a sense of how small it is. Would it be reasonable to solder a couple jumpers wires directly to the esp8266 chip's solder pads and break out gpio 12 and 13 that way? Then just use your code as is? [Edit] Nevermind, a google image search makes that chip look way to tiny for me to tinker with. BTW, I'm in agreement with vickash, this project looks like exactly what I'm looking for. Thank you tve. |
While it is possible to solder to the chip directly, it's really really extremely small. I solder 0603 SMD components regularly and have dealt with 0201 and I wouldn't try this :-). Looks easier to me to change the #defines in the code... |
I'm reopening this issue to make it easier to switch pin assignments. This is bound to come up more... The steps are:
|
I'll be looking forward to this enhancement. For the time being, to switch the pins all I need to do is edit lines 15-22 in serbridge.c? Or will there be more to it? |
Also lines 317-318. Beware that there ma still be buffer overrun issues on some web pages. I have not had time to thoroughly test for that. |
This is addressed in release 0.9.4 using definitions in the Makefile. Still open is to make it more configurable through the web UI and store the settings in flash.. |
gpio pin assignments are configurable on the web pages as of release 0.10.0 |
static main ring buffer one for all, no more E:M ...
The readme states that GPIO pins 12 and 13 are needed. I have the ESP-01 breakout version of the esp8266. It doesn't appear to have pins 12 and 13 broken out. Can I still use this module or do I need to purchase a different version?
The text was updated successfully, but these errors were encountered: