Multi sensor build

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
wwips_tami
 
Posts: 1
Joined: Tue Dec 20, 2022 2:09 pm

Multi sensor build

Post by wwips_tami »

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!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Multi sensor build

Post by mikeysklar »

Cool project.
This 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.
https://learn.adafruit.com/cooperative- ... th-asyncio

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”