Search found 23 matches

by VladVons
Sun Feb 16, 2020 10:16 pm
Forum: ESP8266 boards
Topic: How to check if RST button is pressed 3 seconds?
Replies: 1
Views: 70

How to check if RST button is pressed 3 seconds?

On a WeMos-D1-Mini ESP8266 development board there is one button - RST (reset) Board can be rebooted after button press-release action. While button is in a pressed state the application is still alive (i see terminal screen) but freezed If i release a button than application reboots. So i want to u...
by VladVons
Sat Feb 15, 2020 8:27 am
Forum: ESP8266 boards
Topic: async read keypressed in terminal
Replies: 2
Views: 84

Re: async read keypressed in terminal [SOLVED]

thanks jimmo import uasyncio as asyncio import sys import select async def Task1(): while True: print('Task1') await asyncio.sleep(1) async def Task2(): while True: await asyncio.sleep(0.1) while sys.stdin in select.select([sys.stdin], [], [], 0)[0]: ch = sys.stdin.read(1) print('none block input ch...
by VladVons
Fri Feb 14, 2020 6:57 pm
Forum: ESP8266 boards
Topic: async read keypressed in terminal
Replies: 2
Views: 84

async read keypressed in terminal

i want to read in terminal keypressed while http server is running.
please hint me
by VladVons
Sun May 19, 2019 5:24 am
Forum: ESP8266 boards
Topic: Network sleeps in micropython v1.10-8-g8b7039d7d
Replies: 0
Views: 484

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

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) >>> os.uname() MicroPython v1.9.4-8-ga9a3caad0 on 2018-05-11; ESP module with ESP8266 >>> gc.collect() >>> gc.mem_free() 30720 >>> globals() { 'bdev': <FlashBdev object at 3ffef610>...
by VladVons
Mon Jun 11, 2018 10:01 am
Forum: Programs, Libraries and Tools
Topic: external C library
Replies: 3
Views: 914

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

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

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

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