Skip to content
Snippets Groups Projects
Commit 0d040c25 authored by moon2's avatar moon2 :speech_balloon: Committed by q3k
Browse files

reduced LED brightness

parent e9ffbf4d
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ def set_chord(i):
chord_index = i
for j in range(40):
hue = int(72*(i+0.5)) % 360
set_led_hsv(j, hue, 1, 0.5)
set_led_hsv(j, hue, 1, 0.2)
chord = chords[i]
print("set chord " +str(i))
update_leds()
......
......@@ -86,29 +86,27 @@ def run_menu():
if long_bottom_petal_captouch_blocking(0,20):
clear_all_leds()
highlight_bottom_petal(0,255,0,0)
highlight_bottom_petal(0,55,0,0)
display_fill(background)
display_update()
foreground = cap_touch_demo.run
time.sleep_ms(100)
clear_all_leds()
captouch_autocalib()
cap_touch_demo.foreground()
if long_bottom_petal_captouch_blocking(1,20):
clear_all_leds()
highlight_bottom_petal(1,255,0,0)
highlight_bottom_petal(1,55,0,0)
display_fill(background)
display_update()
foreground = melodic_demo.run
time.sleep_ms(100)
clear_all_leds()
captouch_autocalib()
melodic_demo.foreground()
def foreground_menu():
clear_all_leds()
highlight_bottom_petal(0,0,255,255);
highlight_bottom_petal(1,255,0,255);
highlight_bottom_petal(0,0,55,55);
highlight_bottom_petal(1,55,0,55);
display_fill(background)
draw_text_big(select, 0, 0)
display_update()
......
......@@ -15,21 +15,21 @@ def change_playing_field_color(r,g,b):
highlight_bottom_petal(1, r, g, b)
highlight_bottom_petal(3, r, g, b)
highlight_bottom_petal(4, r, g, b)
highlight_bottom_petal(2, 255, 0, 255)
set_led_rgb(18, 255, 0, 255)
set_led_rgb(19, 255, 0, 255)
set_led_rgb(27, 255, 0, 255)
set_led_rgb(28, 255, 0, 255)
highlight_bottom_petal(2, 55, 0, 55)
set_led_rgb(18, 55, 0, 55)
set_led_rgb(19, 55, 0, 55)
set_led_rgb(27, 55, 0, 55)
set_led_rgb(28, 55, 0, 55)
update_leds()
def adjust_playing_field_to_octave():
global octave
if(octave == -1):
change_playing_field_color(0,0,255)
change_playing_field_color(0,0,55)
elif(octave == 0):
change_playing_field_color(0,127,127)
change_playing_field_color(0,27,27)
elif(octave == 1):
change_playing_field_color(0,255,0)
change_playing_field_color(0,55,0)
def run():
global scale
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment