Search found 18 matches
- Fri Nov 30, 2018 8:34 pm
- Forum: ESP8266 boards
- Topic: Flashing error? (memory allocation failed)
- Replies: 8
- Views: 5042
Re: Flashing error? (memory allocation failed)
You need to include the font files (and as many other files as you can) as frozen files. Thanks from me as well. I have some reading up to do and then hopefully it'll work for me too. I have a "wifi_connect.py" which is importet in the boot.py. I should freeze that too? Anything else? Since you sai...
- Thu Nov 29, 2018 10:20 pm
- Forum: ESP8266 boards
- Topic: Flashing error? (memory allocation failed)
- Replies: 8
- Views: 5042
Re: Flashing error? (memory allocation failed)
You're talking to a beginner First I will look up allocate and array, since I'm not a native english speaker but I'm afraid after that I won't know how to do what you are asking
- Thu Nov 29, 2018 9:05 pm
- Forum: ESP8266 boards
- Topic: Flashing error? (memory allocation failed)
- Replies: 8
- Views: 5042
Flashing error? (memory allocation failed)
Hello, I'm running ssd1306.py to work my i2c-display. via writer.py I want to visualize a bigger font. I'm encountering some problems and was wondering if i did something wrong while flashing. Allthough there should be enough RAM(?) I'm getting this error. from writer import Writer import courier20 ...
- Thu Nov 29, 2018 7:25 pm
- Forum: General Discussion and Questions
- Topic: module documentation (ssd1306)
- Replies: 8
- Views: 13491
Re: module documentation (ssd1306)
Thanks again. Okay, I now get how it's supposed to work. However I'm sadly encountering problems. I've read a lot, tried a lot, changed a lot. the writer.py seems to be the troublemaker. For example: from writer import Writer import courier20 Traceback (most recent call last): File "<stdin>", line 1...
- Thu Nov 29, 2018 1:05 am
- Forum: General Discussion and Questions
- Topic: module documentation (ssd1306)
- Replies: 8
- Views: 13491
Re: module documentation (ssd1306)
I have used Peter Hinch's (@ pythoncoder) Writer and font_to_py tools. https://github.com/peterhinch/micropython-font-to-py/blob/master/writer/writer_demo.py https://github.com/peterhinch/micropython-font-to-py/blob/master/FONT_TO_PY.md https://github.com/peterhinch/micropython-font-to-py thanks, I...
- Wed Nov 28, 2018 11:36 am
- Forum: General Discussion and Questions
- Topic: module documentation (ssd1306)
- Replies: 8
- Views: 13491
module documentation (ssd1306)
Hey, on my ESP2866 running MicroPython I connected an OLED Display (128x64) using this tutorial. I send the ssd1306.py and the ssd1306.mpy to my board. after initializing import machine import ssd1306 i2c = machine.I2C(-1, machine.Pin(5), machine.Pin(4)) oled = ssd1306.SSD1306_I2C(128, 32, i2c) I ca...
- Tue Nov 27, 2018 11:32 am
- Forum: General Discussion and Questions
- Topic: Countdown timer
- Replies: 3
- Views: 3735
Re: Countdown timer
Thanks for your help. :) If you want the bvutton to be tected anytime it is pressed then there will need to be a tiny bit more code to loop testing while waiting That's seems to be what I need and I'm willing to learn how it works. Can you lead me in the right direction how to learn it? link or topi...
- Tue Nov 27, 2018 10:56 am
- Forum: General Discussion and Questions
- Topic: Countdown timer
- Replies: 3
- Views: 3735
Countdown timer
Hello, I'm trying to write my first real MicroPython script. It's supposed to be a timer that starts to count down from 60, when a button is pushed and visualise it on a display. This works fine so far: import machine from machine import Pin, I2C import ssd1306 from time import sleep i2c = I2C(-1, P...
- Sat Nov 24, 2018 11:32 pm
- Forum: ESP8266 boards
- Topic: umqtt.simple trouble
- Replies: 4
- Views: 9075
Re: umqtt.simple trouble
Well this: c = MQTTClient("umqtt_client", "localhost") can't work on the esp8266 because the broker is not running on localhost, which would be the esp8266 itself. It has to be the IP-Adress of the mqtt broker. Thanks, that was my initial suspicion but I forgot the " " :roll: :oops: Now it works, t...
- Fri Nov 23, 2018 7:05 pm
- Forum: ESP8266 boards
- Topic: umqtt.simple trouble
- Replies: 4
- Views: 9075
umqtt.simple trouble
Hi, as you guys suggested i looked into umqtt.simple to send data from my ESP2866 to my Raspberry Pi 3. Here is what i did: On the ESP2866 running Micropython i created the folder "umqtt" and put the simple.py from inside. (https://github.com/micropython/micropython-lib/tree/master/umqtt.simple) Fro...