Search found 4 matches

by maxlock
Sat Oct 08, 2016 5:03 am
Forum: WiPy and CC3200 boards
Topic: Wipy with BMP180 sensor
Replies: 7
Views: 5439

Re: Wipy with BMP180 sensor

FYI for anyone stumbling across this thread I ported a bmp180 lib to machine here:

https://github.com/micropython-IMU/micropython-bmp180

Works fine on my esp8266.

-Max.
by maxlock
Mon Sep 19, 2016 7:56 pm
Forum: ESP8266 boards
Topic: Can I enable/disable IRQs?
Replies: 4
Views: 2437

Re: Can I enable/disable IRQs?

ok, so this seems to do the trick just using a timer. def check_switch(p): global switch_state global switched global last_switch_state switch_state = switch.value() if switch_state != last_switch_state: switched = True last_switch_state = switch_state switch = Pin(0, Pin.IN, Pin.PULL_UP) switch_sta...
by maxlock
Mon Sep 19, 2016 7:46 am
Forum: ESP8266 boards
Topic: Can I enable/disable IRQs?
Replies: 4
Views: 2437

Re: Can I enable/disable IRQs?

Thanks, thats very helpful, I was trying to think of another way of doing it, If I get something going I'll post a follow up here for future reference.

-Cheers Max.
by maxlock
Sat Sep 17, 2016 7:18 pm
Forum: ESP8266 boards
Topic: Can I enable/disable IRQs?
Replies: 4
Views: 2437

Can I enable/disable IRQs?

Hi All, I've got an ESP12 running esp8266-20160917-v1.8.4-16-gb9672bc.bin (latest nightly) and I'm struggling to disable an IRQ to allow me to debounce a connected switch. Here what I'm seeing.... === from machine import Pin === import esp === esp.osdebug(None) === === def handle_tip(p): === print('...