Search found 60 matches

by VladVons
Sun May 19, 2019 5:24 am
Forum: ESP8266 boards
Topic: Network sleeps in micropython v1.10-8-g8b7039d7d
Replies: 0
Views: 2135

Network sleeps in micropython v1.10-8-g8b7039d7d

i have upgraded my several ESP8266 devices from micropython v1.9.4-8-ga9a3caad0 to v1.10-8-g8b7039d7d and get strange kind of behavior while accessing device via ping. It looks like device sleeps first 5-10 seconds and then awakes. Rest devices with v1.9.4-8 are working good Is something changed in ...
by VladVons
Thu Jun 14, 2018 5:51 am
Forum: General Discussion and Questions
Topic: How to free memory after unused imports?
Replies: 8
Views: 7252

How to free memory after unused imports?

My pure free memory is 30720 Than i import App.py (free memory 17216) Than i try to free App (free memory still 18688) i tried this. No effect https://mail.python.org/pipermail/tutor/2006-August/048596.html >>> os.uname() MicroPython v1.9.4-8-ga9a3caad0 on 2018-05-11; ESP module with ESP8266 >>> gc....
by VladVons
Mon Jun 11, 2018 10:01 am
Forum: Programs, Libraries and Tools
Topic: external C library
Replies: 3
Views: 3351

Re: external C library

No working howto examples found.

Dynamically loadable native object code is definitely a feature that MicroPython wants to have, it would be very useful
(Damien George, Sep 11, 2017)
by VladVons
Sat Jun 09, 2018 7:19 pm
Forum: Programs, Libraries and Tools
Topic: external C library
Replies: 3
Views: 3351

external C library

is it possible to write external C library, save compiled file as SomeFile.so and call it from a python?
Something like plugins or libraries
Other words move trash outside micropython core and reduce its size with more ussage flexibility
DHT
cc3000
lcd160cr
....

import SomeFile
SomeFile.SomeMethod()
by VladVons
Sat Jun 09, 2018 5:08 am
Forum: Drivers for External Components
Topic: DHT21 humidity sensor doesnt work
Replies: 2
Views: 3843

DHT21 humidity sensor doesnt work

I have DHT21 sensor, 3 wires, 4,7 k resistor. It causes exception ETIMEOUT import dht import time aPin = 14 #Pin = machine.Pin(aPin, machine.Pin.IN, machine.Pin.PULL_UP) Pin = machine.Pin(aPin) Obj = dht.DHT22(Pin) time.sleep_ms(250) Obj.measure() -> exception : ETIMEOUT native GitHub micropython dr...
by VladVons
Thu Jun 07, 2018 5:54 am
Forum: General Discussion and Questions
Topic: SOLVED. print() doesnt echo in ESP8266 daily builds
Replies: 3
Views: 2476

SOLVED. print() doesnt echo in ESP8266 daily builds

Found the problem.

in earlier build versions there was not line

Code: Select all

uos.dupterm(machine.UART(0, 115200), 1)
i just owerrided boot.py with my edition with no uos.dupterm
by VladVons
Wed Jun 06, 2018 10:35 pm
Forum: General Discussion and Questions
Topic: SOLVED. print() doesnt echo in ESP8266 daily builds
Replies: 3
Views: 2476

Re: print() doesnt echo in ESP8266 daily builds

How to fix it?

daily builds mostly used by developers/testers and any print information is important.
what is the reason to silent the print()?
other info functions dont work too.
micropython.mem_info() etc...
by VladVons
Wed Jun 06, 2018 7:19 am
Forum: General Discussion and Questions
Topic: SOLVED. print() doesnt echo in ESP8266 daily builds
Replies: 3
Views: 2476

SOLVED. print() doesnt echo in ESP8266 daily builds

I didnt notice such problem in 1.9.3-XXX
in terminal 1.9.4-XXX builds there is no print output from a *.py, but in REPL everething is ok.

Code: Select all

#boot.py:
print('Hello') # no output

MicroPython v1.9.4-119......
>>> print('Hello') # output ok
Hello
by VladVons
Tue Mar 28, 2017 10:00 pm
Forum: ESP8266 boards
Topic: [SOLVED] exec() function doesnt return result?
Replies: 8
Views: 16261

Re: [SOLVED] exec() function doesnt return result?

eval calculates epressions only.

it cant call and execute methods or functions

Code: Select all

eval("print('Hello World')")
SyntaxError: invalid syntax