Search found 34 matches

by Frida
Thu May 03, 2018 7:14 pm
Forum: General Discussion and Questions
Topic: OSError: [Errno 5] EIO while using I2C
Replies: 4
Views: 683

Re: OSError: [Errno 5] EIO while using I2C

When it works from the terminal, try a little delay after your writing, so the eeprom has time to write.
by Frida
Mon Jan 22, 2018 6:26 pm
Forum: ESP8266 boards
Topic: Wemos D1 Mini + AM2320
Replies: 18
Views: 8186

Re: Wemos D1 Mini + AM2320

On the picture is the orange wire and scl at one end and sda in the other.
With i2c, scl must be connected to scl and sda connected to sda.
In addition, pullup resistors are missing.
by Frida
Thu Feb 02, 2017 1:56 pm
Forum: ESP8266 boards
Topic: I2C EEPROM on uPy/ESP8266?
Replies: 48
Views: 11104

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: 7
Views: 1845

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

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

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

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

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

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: The WiPy and CC3200 boards
Topic: NEW: WiPy 2.0 - shipping 10 Oct 2016
Replies: 62
Views: 20088

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/