Simple test

Ensure your device works with this simple test.

examples/fs3000_simpletest.py
 1# SPDX-FileCopyrightText: Copyright (c) 2025 Noel Anderson
 2#
 3# SPDX-License-Identifier: Unlicense
 4
 5import time
 6
 7import board
 8
 9from fs3000 import FS3000_1015
10
11i2c = board.I2C()  # uses board.SCL and board.SDA
12
13# Example usage
14sensor = FS3000_1015(i2c)
15
16
17while True:
18    print(f"Airflow: {sensor.airflow()} m/s")
19    time.sleep(2)