mirror of
https://github.com/sigmasternchen/dosimeter-arduino
synced 2025-03-15 09:38:55 +00:00
updated demo to showcase dose counter
This commit is contained in:
parent
69c50f75fe
commit
b4806cc24c
1 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,7 @@ void setup() {
|
|||
Serial.begin(9600);
|
||||
|
||||
Dosimeter.begin(TUBE_PIN, J305);
|
||||
Dosimeter.startRecording();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
@ -25,6 +26,15 @@ void loop() {
|
|||
} else {
|
||||
Serial.println(" (invalid)");
|
||||
}
|
||||
|
||||
Serial.print("dose: ");
|
||||
Serial.print(Dosimeter.getEquivalentDose());
|
||||
Serial.print(" µSv");
|
||||
if (Dosimeter.isValid()) {
|
||||
Serial.println();
|
||||
} else {
|
||||
Serial.println(" (invalid)");
|
||||
}
|
||||
|
||||
delay(1000);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue