Search found 5 matches
- Fri Aug 24, 2018 5:19 pm
- Forum: ESP8266 boards
- Topic: For Your Review - Reed Switch Door Status
- Replies: 4
- Views: 4603
Re: For Your Review - Reed Switch Door Status
Let me start off by saying I am fairly new to Python and MicroPython. I'm enjoying the learning process though and have my first working device, using a Wemos D1 Mini with a reed switch to send the status of my garage door to MQTT. I'm using the asyncio and aswitch modules compiled in a customer fi...
- Wed Jul 25, 2018 8:38 pm
- Forum: ESP8266 boards
- Topic: uart.StreamReader and asyncio no data
- Replies: 10
- Views: 9695
Re: uart.StreamReader and asyncio no data
Hi, problem solved by uos.dupterm(None) and !!! uos.dupterm(None, 1). Means both have to be set. REPL and WebREPL are not more usable with this setup, for shure. I have to find an other way to communicate with the app, may be an own web server. Here my test app: import uos import time from machine ...
- Thu Jun 21, 2018 3:26 pm
- Forum: ESP8266 boards
- Topic: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
- Replies: 5
- Views: 4842
Re: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
I'll test this in boot.py:
and in main.py:
Code: Select all
import uos, machine
TX_PIN = 1
uos.dupterm(none, 1)
uos.dupterm(machine.UART(0, 115200, pins=(TX_PIN, None)), 1)
Code: Select all
import machine
RX_PIN = 3
pin = machine.Pin(RX_PIN , machine.Pin.IN, machine.Pin.PULL_UP)
- Thu Jun 21, 2018 12:29 am
- Forum: ESP8266 boards
- Topic: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
- Replies: 5
- Views: 4842
Re: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
You might want to have a look at the documentation: https://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/pins.html What board are you trying to use? The documentation doesn't talk about the use of RX pin (gpio 3, esp01 module) as ordinary input pin and anything about disable the input se...
- Wed Jun 20, 2018 5:25 pm
- Forum: ESP8266 boards
- Topic: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
- Replies: 5
- Views: 4842
Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
how can i write this code with micropython?
I will use on this circuit:
https://www.forward.com.au/pfod/ESP8266 ... UTPUTS.jpg
Code: Select all
void Setup() {
Serial.begin(115200,SERIAL_8N1,SERIAL_TX_ONLY);
pinMode(2, OUTPUT);
pinMode(0, OUTPUT);
pinMode(3, INPUT_PULLUP);
...
https://www.forward.com.au/pfod/ESP8266 ... UTPUTS.jpg