Multi sensor build
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- wwips_tami
- Posts: 1
- Joined: Tue Dec 20, 2022 2:09 pm
Multi sensor build
Hello! Competition new to Circuit playground but I have the express and I'm trying to get it to alert on multiple sensors like vibration, sound, temp, etc to use on my paranormal investigations. So far I can only get it to do one at a time. Is there a way to write multiple commands into it via Circuit python? Thanks!
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Multi sensor build
Cool project.
https://learn.adafruit.com/cooperative- ... th-asyncioThis guide describes how to do cooperative multitasking in CircuitPython, using the asyncio library and the async and await language keywords. The asyncio library is included with CPython, the host-computer version of Python. MicroPython also supplies a version of asyncio, and that version has been adapted for use in CircuitPython.
Please be positive and constructive with your questions and comments.