Search found 57 matches

by jgmdavies
Fri Aug 26, 2016 7:35 pm
Forum: WiPy and CC3200 boards
Topic: Accelerometer
Replies: 4
Views: 5923

Re: Accelerometer

As far as I can tell, some versions of the 'pyboard' have an accelerometer, the BBC micro:bit has one, but the WiPy doesn't - can anyone confirm or deny this please? If it's no for the WiPy, how about something like this? https://www.sparkfun.com/products/13944 But I guess the best would be if you u...
by jgmdavies
Fri Aug 26, 2016 3:24 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: decimal numbers not supported
Replies: 29
Views: 30812

Re: SyntaxError: decimal numbers not supported

I've written a simple WiPy float package if anyone wants to try it out - please see http://forum.micropython.org/viewtopic.php?f=11&t=1657&p=13205#p13205 It doesn't have the syntactic nicety of x = y / z, but you can achieve something similar, e.g. x = Float(1) y = Float(3) z = Float.divide(x, y) pr...
by jgmdavies
Fri Aug 26, 2016 3:16 pm
Forum: WiPy and CC3200 boards
Topic: Wipy no float and math!
Replies: 20
Views: 110586

Re: Wipy no float and math!

@roncromberge Hi Ron, I've written a simple and kludgy WiPy float package that you are welcome to try, including add/subtract/multiply/divide. On my WiPy it takes about 5 Kb as measured by gc.mem_free() , leaving 45 Kb free (the test module takes much more but isn't normally needed). Warning - there...
by jgmdavies
Fri Aug 26, 2016 11:04 am
Forum: WiPy and CC3200 boards
Topic: update data to thingspeak
Replies: 11
Views: 19383

Re: update data to thingspeak

@quantalume Many thanks. I've been posting to ThingSpeak using urequests.py and urequest.py, but haven't got these to work with HTTPS. If I try to do a second 'ss.send' after a delay, I'm getting OSError 1 ("operation not permitted") - any ideas please? Update: of course it works if I recreate the s...
by jgmdavies
Tue Aug 16, 2016 10:52 am
Forum: WiPy and CC3200 boards
Topic: Losing the REPL when an IRQ is triggered
Replies: 49
Views: 51645

Re: Losing the REPL when an IRQ is triggered

@holdenweb I get these same issues with timer irqs and the REPL (usually via station-mode WiFi in my case). I've tried several variations, including different timers, 16 bit and 32 bit, and irq handlers (always very simple, and fine when called directly). Does anyone know if there's a fundamental is...
by jgmdavies
Fri Aug 12, 2016 2:45 pm
Forum: WiPy and CC3200 boards
Topic: Losing the REPL when an IRQ is triggered
Replies: 49
Views: 51645

Re: Losing the REPL when an IRQ is triggered

@pythoncoder You're right of course - apologies. I retraced my steps and it's now working fine here, with or without a superfluous 'return' statement. (I personally prefer to include a 'return' as I think it makes the program structure clearer.)
by jgmdavies
Tue Aug 09, 2016 2:43 pm
Forum: WiPy and CC3200 boards
Topic: Losing the REPL when an IRQ is triggered
Replies: 49
Views: 51645

Re: Losing the REPL when an IRQ is triggered

This one's gone a bit quiet. To anyone having this problem, try just adding a 'return' statement after the led.toggle line.

Jim