Search found 43 matches

by newb
Sat Jul 28, 2018 7:28 pm
Forum: ESP8266 boards
Topic: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
Replies: 5
Views: 4950

Re: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT

Looks like I solved it myself.
Just needed to disable the UART:

https://github.com/micropython/micropyt ... 303fec6ed3


import machine
import uos
uart = machine.UART(0, 115200)
uos.dupterm(uart, 0)

And RX works as normal input pin :)
by newb
Sat Jul 28, 2018 4:17 pm
Forum: ESP8266 boards
Topic: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT
Replies: 5
Views: 4950

Re: Using the GPIO0 /GPIO2 for OUTPUT and RX for INPUT

[quote=tonyldo post_id=28282 time=1529594788 user_id=4089] I'll test this in boot.py: [CODE] import uos, machine TX_PIN = 1 uos.dupterm(none, 1) uos.dupterm(machine.UART(0, 115200, pins=(TX_PIN, None)), 1) [/CODE] and in main.py: [CODE] import machine RX_PIN = 3 pin = machine.Pin(RX_PIN , machine.Pi...
by newb
Wed Jan 10, 2018 8:26 pm
Forum: ESP8266 boards
Topic: Displaying bitmap graphics on OLED
Replies: 11
Views: 26364

Re: Displaying bitmap graphics on OLED

Apologies for reviving this thread. I was looking for options to show image on my esp8266+ssdl1303 (i2c) running micropython and came up with this thread. Googling further, I found URL where you can upload a b/w image and convert it to hex which you can use with the example above. It works well, you...