mirror of
https://github.com/co-dan/ocaml-wiringpi/
synced 2025-11-03 06:03:51 +01:00
Minor : Add t and f for true/false.
This commit is contained in:
BIN
sapin_noel.bin
BIN
sapin_noel.bin
Binary file not shown.
@@ -45,11 +45,13 @@ let _ =
|
||||
ignore(setupPhys ());
|
||||
(* reg : pin_value = p_v, pin_shift = p_s, pin_apply = p_a *)
|
||||
(* On crée le register *)
|
||||
(* En mode pulse : let reg = genReg 11 13 15 ~pulse:true in *)
|
||||
(* En mode pulse : *)
|
||||
(* let reg = genReg 11 13 15 ~pulse:true in *)
|
||||
let reg = genReg 11 13 15 in
|
||||
(* On initialise *)
|
||||
let leds = initReg reg ~nb_reg:1 in
|
||||
|
||||
let t = true
|
||||
and f = false in
|
||||
Printf.printf "Début\n%!";
|
||||
(* And a pretty animation *)
|
||||
anim_01 reg leds max_int;
|
||||
|
||||
Reference in New Issue
Block a user