No description
- C 88.7%
- Shell 11.3%
| api | ||
| main.c | ||
| README.md | ||
| run.sh | ||
AG-01 — Moisture Collector
Edit only main.c.
The supplied library reads the detector data, remembers the totals, and prints
the result. In main.c, replace the three 0 placeholders in the if /
else if chain with comparisons using reading.
| Reading | Reporting call already in the template |
|---|---|
| negative | moisture_record_error(reading) |
0 |
moisture_record_idle() |
1–100 |
moisture_record_collect(reading) |
greater than 100 |
moisture_record_saturated(reading) |
Run the supplied demonstration with:
./run.sh
It builds your main.c and runs a fixed set of detector readings for you.
Do not edit api/. Submit the completed folder when
instructed. The instructor compiles main.c with the provided library and
checks it after collection.