Search found 28 matches

by newb
Wed Sep 12, 2018 5:49 pm
Forum: General Discussion and Questions
Topic: UDP instead of MQTT
Replies: 0
Views: 312

UDP instead of MQTT

Hi, I've got esp8266-01 (1mb) which I intend to use as a wifi button. The esp-01 will notify for button press a raspberry pi, where raspberry pi will be in AP mode and esp-01 in workstation mode. There won't be internet or router connections i.e. it will be a closed network. My question is if it's a...
by newb
Wed Aug 29, 2018 7:19 am
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 23
Views: 6541

Re: Suggested standard approach to font handling

Thank you for explaining this and for the maintaining the writer class. It might be connected to my lack of knowledge but I found out that if set font points to odd number, the converted python font is rendered better than if I set even number of points. The pictures I posted are with even number of...
by newb
Tue Aug 28, 2018 4:17 pm
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 23
Views: 6541

Re: Suggested standard approach to font handling

So it seems that you have made quite few changes since I used the Writer class :) I used your example code fro writer class from the git repo. I've changed the pin setup in ssd1306_setup.py to match my Pins setup. Have you tested the code on esp8266? I'm getting this error: Traceback (most recent ca...
by newb
Tue Aug 28, 2018 2:42 pm
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 23
Views: 6541

Re: Suggested standard approach to font handling

Cool! I'll test it in the next few days and post the result here.
Thanks for the prompt reaction on this. I was playing with an OLED display connected to Nodemcu and I wanted to output messages in my own language :)
by newb
Mon Aug 27, 2018 7:33 pm
Forum: Development of MicroPython
Topic: Suggested standard approach to font handling
Replies: 23
Views: 6541

Re: Suggested standard approach to font handling

Is there any chance you can add an option to micropython-font-to-py to select charset from utf-8 or another charset ascii codepage (eg 855)?
I need to use Cyrillic fonts and I'm stuck with "????"s :)
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: 1112

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: 1112

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: 11286

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...