@@ -78,9 +78,9 @@ Plays a tone with the given frequency and duration.
78
78
If blocking is set to True , the function will wait until the tone is finished .
79
79
80
80
Parameters :
81
- frequency: The frequency of the tone in Hz
82
- lenght_ms: The duration of the tone in milliseconds
83
- blocking: If set to True , the function will wait until the tone is finished
81
+ frequency: The frequency of the tone in Hz
82
+ lenght_ms: The duration of the tone in milliseconds
83
+ blocking: If set to True , the function will wait until the tone is finished
84
84
85
85
< a id = " modulino.buzzer.ModulinoBuzzer.no_tone" >< / a>
86
86
@@ -117,7 +117,7 @@ def set_led_status(a, b, c)
117
117
Turn on or off the button LEDs according to the given status .
118
118
119
119
Parameters :
120
- a (bool ): The status of the LED A.
120
+ a (bool ): The status of the LED A.
121
121
b (bool ): The status of the LED B.
122
122
c (bool ): The status of the LED C.
123
123
@@ -146,7 +146,7 @@ def is_pressed(index)
146
146
Returns True if the button at the given index is currently pressed.
147
147
148
148
Parameters:
149
- index (int): The index of the button. A = 0, B = 1, C = 2.
149
+ index (int): The index of the button. A = 0, B = 1, C = 2.
150
150
151
151
<a id =" modulino.modulino.I2CHelper " ></a >
152
152
@@ -378,7 +378,7 @@ def range(value)
378
378
Sets the range of the encoder value .
379
379
380
380
Parameters :
381
- value (tuple ): A tuple with two integers representing the minimum and maximum values of the range .
381
+ value (tuple ): A tuple with two integers representing the minimum and maximum values of the range .
382
382
383
383
< a id = " modulino.knob.ModulinoKnob.on_rotate_clockwise" >< / a>
384
384
@@ -392,7 +392,7 @@ def on_rotate_clockwise(value)
392
392
Sets the callback for the rotate clockwise event.
393
393
394
394
Parameters:
395
- value (function): The function to be called when the encoder is rotated clockwise.
395
+ value (function): The function to be called when the encoder is rotated clockwise.
396
396
397
397
<a id =" modulino.knob.ModulinoKnob.on_rotate_counter_clockwise " ></a >
398
398
@@ -406,7 +406,7 @@ def on_rotate_counter_clockwise(value)
406
406
Sets the callback for the rotate counter clockwise event.
407
407
408
408
Parameters:
409
- value (function): The function to be called when the encoder is rotated counter clockwise.
409
+ value (function): The function to be called when the encoder is rotated counter clockwise.
410
410
411
411
<a id =" modulino.knob.ModulinoKnob.on_press " ></a >
412
412
@@ -420,7 +420,7 @@ def on_press(value)
420
420
Sets the callback for the press event.
421
421
422
422
Parameters:
423
- value (function): The function to be called when the encoder is pressed.
423
+ value (function): The function to be called when the encoder is pressed.
424
424
425
425
<a id =" modulino.knob.ModulinoKnob.on_release " ></a >
426
426
@@ -434,7 +434,7 @@ def on_release(value)
434
434
Sets the callback for the release event.
435
435
436
436
Parameters:
437
- value (function): The function to be called when the encoder is released.
437
+ value (function): The function to be called when the encoder is released.
438
438
439
439
<a id =" modulino.knob.ModulinoKnob.value " ></a >
440
440
@@ -459,7 +459,7 @@ def value(new_value)
459
459
Sets the value of the encoder. This overrides the previous value.
460
460
461
461
Parameters:
462
- new_value (int): The new value of the encoder.
462
+ new_value (int): The new value of the encoder.
463
463
464
464
<a id =" modulino.knob.ModulinoKnob.pressed " ></a >
465
465
@@ -509,12 +509,12 @@ def set_range_rgb(index_from, index_to, r, g, b, brightness=100)
509
509
Sets the color of the LEDs in the given range to the given RGB values .
510
510
511
511
Parameters :
512
- index_from (int ): The starting index of the range .
513
- index_to (int ): The ending index (inclusive) of the range .
514
- r (int ): The red value of the color.
515
- g (int ): The green value of the color.
516
- b (int ): The blue value of the color.
517
- brightness (int ): The brightness of the LED . It should be a value between 0 and 100 .
512
+ index_from (int ): The starting index of the range .
513
+ index_to (int ): The ending index (inclusive) of the range .
514
+ r (int ): The red value of the color.
515
+ g (int ): The green value of the color.
516
+ b (int ): The blue value of the color.
517
+ brightness (int ): The brightness of the LED . It should be a value between 0 and 100 .
518
518
519
519
< a id = " modulino.pixels.ModulinoPixels.set_range_color" >< / a>
520
520
@@ -527,10 +527,10 @@ def set_range_color(index_from, index_to, color, brightness=100)
527
527
Sets the color of the LEDs in the given range to the given color.
528
528
529
529
Parameters:
530
- index_from (int): The starting index of the range.
531
- index_to (int): The ending index (inclusive) of the range.
532
- color (ModulinoColor): The color of the LEDs.
533
- brightness (int): The brightness of the LED. It should be a value between 0 and 100.
530
+ index_from (int): The starting index of the range.
531
+ index_to (int): The ending index (inclusive) of the range.
532
+ color (ModulinoColor): The color of the LEDs.
533
+ brightness (int): The brightness of the LED. It should be a value between 0 and 100.
534
534
535
535
<a id =" modulino.pixels.ModulinoPixels.set_all_rgb " ></a >
536
536
@@ -543,10 +543,10 @@ def set_all_rgb(r, g, b, brightness=100)
543
543
Sets the color of all the LEDs to the given RGB values.
544
544
545
545
Parameters:
546
- r (int): The red value of the color.
547
- g (int): The green value of the color.
548
- b (int): The blue value of the color.
549
- brightness (int): The brightness of the LED. It should be a value between 0 and 100.
546
+ r (int): The red value of the color.
547
+ g (int): The green value of the color.
548
+ b (int): The blue value of the color.
549
+ brightness (int): The brightness of the LED. It should be a value between 0 and 100.
550
550
551
551
<a id =" modulino.pixels.ModulinoPixels.set_all_color " ></a >
552
552
@@ -559,8 +559,8 @@ def set_all_color(color, brightness=100)
559
559
Sets the color of all the LEDs to the given color.
560
560
561
561
Parameters:
562
- color (ModulinoColor): The color of the LEDs.
563
- brightness (int): The brightness of the LED. It should be a value between 0 and 100.
562
+ color (ModulinoColor): The color of the LEDs.
563
+ brightness (int): The brightness of the LED. It should be a value between 0 and 100.
564
564
565
565
<a id =" modulino.pixels.ModulinoPixels.set_color " ></a >
566
566
@@ -573,9 +573,9 @@ def set_color(idx, rgb: ModulinoColor, brightness=100)
573
573
Sets the color of the given LED index to the given color.
574
574
575
575
Parameters:
576
- idx (int): The index of the LED.
577
- rgb (ModulinoColor): The color of the LED.
578
- brightness (int): The brightness of the LED. It should be a value between 0 and 100.
576
+ idx (int): The index of the LED.
577
+ rgb (ModulinoColor): The color of the LED.
578
+ brightness (int): The brightness of the LED. It should be a value between 0 and 100.
579
579
580
580
<a id =" modulino.pixels.ModulinoPixels.set_rgb " ></a >
581
581
@@ -588,11 +588,11 @@ def set_rgb(idx, r, g, b, brightness=100)
588
588
Set the color of the given LED index to the given RGB values.
589
589
590
590
Parameters:
591
- idx (int): The index of the LED.
592
- r (int): The red value of the color.
593
- g (int): The green value of the color.
594
- b (int): The blue value of the color.
595
- brightness (int): The brightness of the LED. It should be a value between 0 and 100.
591
+ idx (int): The index of the LED.
592
+ r (int): The red value of the color.
593
+ g (int): The green value of the color.
594
+ b (int): The blue value of the color.
595
+ brightness (int): The brightness of the LED. It should be a value between 0 and 100.
596
596
597
597
<a id =" modulino.pixels.ModulinoPixels.clear " ></a >
598
598
@@ -605,7 +605,7 @@ def clear(idx)
605
605
Turns off the LED at the given index.
606
606
607
607
Parameters:
608
- idx (int): The index of the LED.
608
+ idx (int): The index of the LED.
609
609
610
610
<a id =" modulino.pixels.ModulinoPixels.clear_all " ></a >
611
611
@@ -618,7 +618,7 @@ def clear_all()
618
618
Turns all the LEDs off.
619
619
620
620
Parameters:
621
- idx (int): The index of the LED
621
+ idx (int): The index of the LED
622
622
623
623
<a id =" modulino.pixels.ModulinoPixels.show " ></a >
624
624
0 commit comments