Search found 42 matches

by Frida
Fri Apr 15, 2016 1:21 pm
Forum: ESP8266 boards
Topic: I2C changes to get the HTU21D working.
Replies: 9
Views: 3632

Re: I2C changes to get the HTU21D working.

And now with timeout uint32_t start = mp_hal_ticks_ms(); // PB while (mp_hal_i2c_scl_read(self) == 0) { // PB // clock stretching if(mp_hal_ticks_ms() - start > 55) { // max 50ms/14bit/temp mp_hal_i2c_stop(self); nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "I2C bus error clock stretching"))...
by Frida
Fri Apr 15, 2016 9:33 am
Forum: ESP8266 boards
Topic: Call for testsuite running results
Replies: 31
Views: 14055

Re: Call for testsuite running results

412 tests performed (13321 individual testcases) 406 tests passed 48 tests skipped: builtin_compile class_descriptor exception_chain fun_name ordereddict1 parser slice_attrs string_splitlines machine1 machine_mem urandom_extra vfs_fat_ramdisk bytearray_construct bytes_construct cmath_fun cmath_fun_...
by Frida
Thu Apr 14, 2016 8:47 pm
Forum: ESP8266 boards
Topic: Early access releases #3 & #4
Replies: 51
Views: 20246

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: 9
Views: 3632

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

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

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

#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: 2009

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

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

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