Search found 40 matches

by Frida
Thu Apr 14, 2016 8:47 pm
Forum: ESP8266 boards
Topic: Early access releases #3 & #4
Replies: 51
Views: 15271

Re: Early access release #3

After I enter import web repl2, the console blocks until I start webrepl and connect. When I disconnect, it takes some time before webrepl are disconnected. Back in the console when I type return and tab, or I type tab and return, mycropython crash. b'aEktOB/ssf/OUtf8UAJIY4OxeHM=' b'HTTP/1.1 101 Swi...
by Frida
Tue Apr 12, 2016 7:21 pm
Forum: ESP8266 boards
Topic: I2C changes to get the HTU21D working.
Replies: 7
Views: 2270

I2C changes to get the HTU21D working.

In the latest commit eec8a94 I have made some changes. >>> i2c.scan() [64] Smallest scan freq is ca. 800 hz, or esp8266 resets. To get the scan to work, I changed to write to address instead of read from address. STATIC mp_obj_t machine_i2c_scan(mp_obj_t self_in) { machine_i2c_obj_t *self = MP_OBJ_T...
by Frida
Wed Mar 09, 2016 9:21 pm
Forum: ESP8266 boards
Topic: New *early access* mp-esp8266-firmware-vXY.bin on ESP8266
Replies: 49
Views: 18167

Re: New mp-esp8266-firmware-v01.bin on ESP8266

On a esp8266-01 One Wire works with my snippet. from machine import Pin import onewire import time ow = onewire.OneWire(Pin(0)) ds = onewire.DS18B20(ow) roms = ds.scan() print('roms',roms) while 1: a = ds.start_measure() time.sleep_ms(1750) for rom in roms: print(ds.get_temp(rom)) And the output. 24...
by Frida
Sat Mar 05, 2016 2:02 pm
Forum: ESP8266 boards
Topic: MicroPython on ESP8266 Kickstarter
Replies: 91
Views: 41864

Re: MicroPython on ESP8266 Kickstarter

MicroPython v1.6-128-g5788499 on 2016-03-05; ESP module with ESP8266 Type "help()" for more information. >>> 2+4 6 >>> help() Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name not defined >>> import pyb >>> pyb <module 'pyb'> >>> dir(pyb) ['__name__', 'info', 'f...
by Frida
Wed Feb 24, 2016 2:16 pm
Forum: General Discussion and Questions
Topic: #include <stdio.h> in file modnwcc3k.c
Replies: 1
Views: 1097

#include <stdio.h> in file modnwcc3k.c

Any ide, why I can't use #include <stdio.h> in file modnwcc3k.c. I got a lot of errors. It compiles ok without that include. But I want to use printf() in that file. Is there any other method to accomplish this? CC modnwcc3k.c In file included from /usr/include/newlib/stdio.h:48:0, from modnwcc3k.c:...
by Frida
Mon Feb 22, 2016 9:52 am
Forum: MicroPython pyboard
Topic: CC3000 wifi not coming up after cycling EN low/high
Replies: 1
Views: 1694

Re: CC3000 wifi not coming up after cycling EN low/high

I have a strippet down example. Notice I have put in: a=[('0.0.0.0')] b=tuple(a) EN.low() pyb.udelay(250) while (b == nic.ifconfig()[0:1]): print('...waiting...') pyb.delay(200) At last you only need to set EN.low() at the end, because nic = network.CC3K(SPI, CS, EN, IRQ) will set it high. import ne...
by Frida
Wed Feb 17, 2016 6:52 pm
Forum: General Discussion and Questions
Topic: CC3000 timing
Replies: 0
Views: 1282

CC3000 timing

From micropython/drivers/cc3000/src/ccspi.c I found this slice, as I have the following questions for: __delay_cycles(1200) gives 50 usec at 24MHZ. Should x*=6 not be x*=7, as 24*7= 168? Next, are this driver used with the other cpu's with lower MHZ? If so, then the timing is not correct. STATIC voi...
by Frida
Tue Feb 16, 2016 10:35 pm
Forum: Drivers for External Components
Topic: CC3000 and (ctrl-d)
Replies: 0
Views: 1450

CC3000 and (ctrl-d)

After some playing around with my new PYBv1.1 and my CC3000, I have come up with a workaround for (ctrl-d). Full implemented in cc3000_test3.py Try it out. #cc3000_test1.py SSID='';password='' import network # pyb.LED(1).on() nic = network.CC3K(pyb.SPI(2), pyb.Pin.board.Y5, pyb.Pin.board.Y4, pyb.Pin...
by Frida
Tue Feb 16, 2016 9:22 pm
Forum: General Discussion and Questions
Topic: Download of file with ctrl-E
Replies: 2
Views: 1193

Re: Download of file with ctrl-E

I am using GtkTerm with 9600-8-N-1 and End of line delay(milliseconds): of 30
I have before downloaded files of up to 17k to forth without problems.
But now I know it, I can live with it.
by Frida
Sat Feb 13, 2016 2:28 pm
Forum: General Discussion and Questions
Topic: Download of file with ctrl-E
Replies: 2
Views: 1193

Download of file with ctrl-E

Is there any limit on the number of characters that can be downloaded with ctrl-E. When I hit 961 characters, there are not downloaded more on PYBv1.1