Search found 40 matches

by Frida
Sat Dec 17, 2016 8:26 pm
Forum: General Discussion and Questions
Topic: Sonoff: IRQ on push-button
Replies: 6
Views: 1769

Re: Sonoff: IRQ on push-button

I have changed your pin to pins for wipy1: #pinRelay = machine.Pin(12, machine.Pin.OUT) #pinSchalter = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP) pinRelay=Pin('GP16');pinRelay.value(1);pinRelay.mode(1) #set led off pinSchalter=Pin('GP17', Pin.IN, Pin.PULL_UP) changed: while pinSchalter == 0...
by Frida
Sat Dec 17, 2016 5:00 pm
Forum: General Discussion and Questions
Topic: Sonoff: IRQ on push-button
Replies: 6
Views: 1769

Re: Sonoff: IRQ on push-button

On my wipy1, I can run this: # on wipy1 import micropython micropython.alloc_emergency_exception_buf(100) import time from machine import Pin #pinRelay = machine.Pin(12, machine.Pin.OUT) #pinSchalter = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP) pinRelay=Pin('GP16');pinRelay.value(1);pinRela...
by Frida
Sat Dec 17, 2016 3:36 pm
Forum: General Discussion and Questions
Topic: Sonoff: IRQ on push-button
Replies: 6
Views: 1769

Re: Sonoff: IRQ on push-button

Boiled down, should if zeitschleifer >= 100:, not be if zeitschleife >= 100:
My bet.
by Frida
Thu Nov 10, 2016 6:23 pm
Forum: ESP8266 boards
Topic: Avoid flash wearing by altering behavior originally introduced by Espressif (the inventor of the ESP8266)
Replies: 76
Views: 22888

Re: Avoid flash wearing by altering behavior originally introduced by Espressif (the inventor of the ESP8266)

An extract from Espruino with Javascript, where we have wifi.save() var wifi = require("Wifi"); wifi.connect("my-ssid", {password:"my-pwd"}, function(ap){ console.log("connected:", ap); }); wifi.stopAP(); You may want to add wifi.setDHCPHostname("espruino"). Once you're happy with your connection, y...
by Frida
Wed Oct 19, 2016 5:03 pm
Forum: General Discussion and Questions
Topic: Free RAM on MicroPython boards
Replies: 37
Views: 23997

Re: Free RAM on MicroPython boards

Code: Select all

>>> import os
>>> os.uname()
(sysname='LoPy', nodename='LoPy', release='0.9.0.b2', version='f5444c7 on 2016-10-12', machine='LoPy with ESP32')

Code: Select all

>>> import gc
>>> gc.collect()
>>> gc.mem_free()
191216
by Frida
Tue Oct 18, 2016 5:59 pm
Forum: WiPy and CC3200 boards
Topic: NEW: WiPy 2.0 - shipping 10 Oct 2016
Replies: 62
Views: 22098

Re: NEW: WiPy 2.0 - shipping 10 Oct 2016

jgmdavies wrote:Many thanks Daniel.

The link in your signature doesn't seem to work - http://www.wipy.io ?

Jim
it has changed to
https://www.pycom.io/
by Frida
Tue Oct 18, 2016 5:52 pm
Forum: ESP32 boards
Topic: My LoPy board arrived
Replies: 22
Views: 7469

Re: My LoPy board arrived

Funny. Is that out-of-the-package, or after firmware update as recommended? Try running following code: It is after firmware update. >>> ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) ets Jun 8 2016 00:22:57 rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT...
by Frida
Tue Oct 18, 2016 12:40 pm
Forum: ESP32 boards
Topic: My LoPy board arrived
Replies: 22
Views: 7469

Re: My LoPy board arrived

2x for a LoPy section in this forum, like the one for WiPy. Please, measure the free RAM after login (or reset) with : import micropython micropython.mem_info() or : import gc gc.mem_free() and share with us. >>> >>> import micropython >>> micropython.mem_info() stack: 3221402640 GC: total: 192064,...
by Frida
Mon Aug 15, 2016 8:54 am
Forum: Programs, Libraries and Tools
Topic: mu editor for micropython
Replies: 42
Views: 24469

Re: mu editor for micropython

poul@poul-S400CA ~/Programmer/mu/mu $ ./run.py Traceback (most recent call last): File "./run.py", line 2, in <module> from mu.app import run File "/home/poul/Programmer/mu/mu/mu/app.py", line 27, in <module> from mu.logic import Editor, LOG_FILE, LOG_DIR File "/home/poul/Programmer/mu/mu/mu/logic....
by Frida
Thu Aug 11, 2016 7:37 pm
Forum: ESP8266 boards
Topic: uPyLoader - simple file transfer and communication
Replies: 52
Views: 21331

Re: uPyLoader - simple file transfer and communication

poul@poul-S400CA ~/Programmer/uPyLoader/uPyLoader $ python main.py File "main.py", line 137 dialog.exec() ^ SyntaxError: invalid syntax poul@poul-S400CA ~/Programmer/uPyLoader/uPyLoader $ Next stone! Of course, it should be python3 main.py Now it is up running and testing. Thank you very much.