tUse a more noticable finish sound - lego_film_processor - software for rotary photographic film processor with Lego Mindstorms RCX
(HTM) git clone git://src.adamsgaard.dk/lego_film_processor
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 29801998d9efe84c3f49a7e45f10f00cf5db1022
(DIR) parent 6350d48897168b5f89ac7b83e4e560bfcee32c9d
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 12 Jul 2019 16:24:42 +0200
Use a more noticable finish sound
Diffstat:
M lego_jobo.nqc | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
---
(DIR) diff --git a/lego_jobo.nqc b/lego_jobo.nqc
t@@ -17,23 +17,13 @@ main()
t_end = 60*DEVELOP_MINS + DEVELOP_SECS;
while (t_current < t_end) {
-
Wait(T_TURN);
Toggle(OUT_A);
-
t_current += T_TURN/100;
}
Off(OUT_A + OUT_B + OUT_C);
-
- PlayTone(147, 20); /* d */
- PlayTone(156, 20); /* d# */
- PlayTone(147, 20); /* d */
- PlayTone(294, 40); /* d+1 */
-
- PlayTone(147, 20); /* d */
- PlayTone(156, 20); /* d# */
- PlayTone(147, 20); /* d */
- PlayTone(175, 40); /* f */
-
+ repeat (4) {
+ PlaySound(SOUND_UP);
+ }
SetSleepTime(5);
}