Search found 17 matches

by Saran
Thu Oct 22, 2015 6:43 pm
Forum: WiPy and CC3200 boards
Topic: WLAN.STA not working after 1.1.0 [sorted]
Replies: 2
Views: 3474

WLAN.STA not working after 1.1.0 [sorted]

I've this scropt working on 1.0.0: # boot.py -- run on boot-up # can run arbitrary Python, but best to keep it minimal from network import WLAN wifi = WLAN(mode=WLAN.STA) nets = wifi.scan() for net in nets: if net.ssid.lower() == 'ssid1': wifi.connect(net.ssid, auth=(net.auth, 'passwd')) break elif ...
by Saran
Sun Oct 18, 2015 6:04 pm
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 56902

Re: Onewire and DS18B20

@lucien2k: did you succeed reading a 1-wire sensor? I have no luck...
by Saran
Fri Oct 16, 2015 7:31 pm
Forum: WiPy and CC3200 boards
Topic: Timer frequency minimum is 5 Hz?
Replies: 3
Views: 3889

Re: Timer frequency minimum is 5 Hz?

No prob. I'll use sleep in the meantime...
by Saran
Fri Oct 16, 2015 8:26 am
Forum: WiPy and CC3200 boards
Topic: Timer frequency minimum is 5 Hz?
Replies: 3
Views: 3889

Timer frequency minimum is 5 Hz?

Hi, >>> from machine import Pin >>> from machine import Timer >>> >>> tim = Timer(1, mode=Timer.PERIODIC) >>> tim_a = tim.channel(Timer.A, freq=4 ) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid argument(s) value >>> tim_a = tim.channel(Timer.A, freq=5 ) >...
by Saran
Thu Oct 15, 2015 9:52 pm
Forum: WiPy and CC3200 boards
Topic: Timer channel callback() doesn't work
Replies: 5
Views: 5094

Re: Timer channel callback() doesn't work

All that is understandable, but, if I was in your shoes, I would have rather left out 1 whole API (temporarily) than leaving main API interface doc ("machine") incorrectly referenced ("pyb"). For someone who knows what's what, that API doc update should have taken 15 minutes. So, in a few hours the ...
by Saran
Thu Oct 15, 2015 6:42 pm
Forum: WiPy and CC3200 boards
Topic: Timer channel callback() doesn't work
Replies: 5
Views: 5094

Re: Timer channel callback() doesn't work

Hi, .callbacks have been renamed to .irq() everywhere. Unbelievable. This must be a practical joke! More than 2 months of shipping delay and "fine tuning" to find the API unusable -- because to be able to use any of it I have to look in the magic ball to tell me which are the correct method/module ...
by Saran
Thu Oct 15, 2015 10:01 am
Forum: WiPy and CC3200 boards
Topic: Timer channel callback() doesn't work
Replies: 5
Views: 5094

Timer channel callback() doesn't work

I've been following the documentation , but callback method fails with >>> tim = Timer(1, mode=Timer.PERIODIC) >>> def tick(timer): print(timer.counter()) ... >>> tim.callback(tick) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: no such attribute >>> Also trie...