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.
Search found 4 matches
- Sat Oct 08, 2016 5:03 am
- Forum: WiPy and CC3200 boards
- Topic: Wipy with BMP180 sensor
- Replies: 9
- Views: 64706
- Mon Sep 19, 2016 7:56 pm
- Forum: ESP8266 boards
- Topic: Can I enable/disable IRQs?
- Replies: 4
- Views: 10055
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...
- Mon Sep 19, 2016 7:46 am
- Forum: ESP8266 boards
- Topic: Can I enable/disable IRQs?
- Replies: 4
- Views: 10055
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.
-Cheers Max.
- Sat Sep 17, 2016 7:18 pm
- Forum: ESP8266 boards
- Topic: Can I enable/disable IRQs?
- Replies: 4
- Views: 10055
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('...