Search found 42 matches

by Frida
Thu Feb 02, 2017 1:56 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 19581

Re: I2C EEPROM on uPy/ESP8266?

@ warren From the datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/21754M.pdf Page Write Time 5 ms max. Note: The 24XX512 does not generate any Acknowledge bits if an internal programming cycle is in progress. 7.0 ACKNOWLEDGE POLLING Since the device will not acknowledge during a write cycl...
by Frida
Fri Jan 06, 2017 1:06 pm
Forum: ESP8266 boards
Topic: I2C changes to get the HTU21D working.
Replies: 9
Views: 3648

Re: I2C changes to get the HTU21D working.

I haven't looked at it for a long time.
I put the code in: 'machine_i2c.c in /micropython/extmod'
But are you using pullup on SCL and SDA?

And the HTU21D was part of stretch goal, but I don't know of it is implementet yet?
by Frida
Sat Dec 17, 2016 8:26 pm
Forum: General Discussion and Questions
Topic: Sonoff: IRQ on push-button
Replies: 6
Views: 2612

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

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

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

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

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

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

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

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