Skip to content

Commit 165fb7c

Browse files
committed
slowed down hello message on first boot
1 parent 2c25cc0 commit 165fb7c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/ttboard/boot/firstboot_operations.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def firstboot_completed():
5454
tt = get_demoboard()
5555
if tt.chip_ROM.shuttle == 'tt03p5':
5656
print("CHIPROM shuttle is 03p5, saying hello")
57-
say_hello_03p5(180, times=2)
57+
say_hello_03p5(350, times=2)
5858
else:
5959
print(f"CHIPROM shuttle {tt.chip_ROM.shuttle}, saying hello")
60-
say_hello(180, times=2)
60+
say_hello(350, times=2)
6161

6262
return True
6363

@@ -120,16 +120,20 @@ def say_hello(delay_interval_ms:int=200, times:int=1):
120120

121121
log.info('First boot: saying hello')
122122
tt.bidir_mode = [Pins.OUT] * 8 # set as outputs
123+
124+
short_delay_ms = int(delay_interval_ms/10)
125+
if short_delay_ms < 10:
126+
short_delay_ms = 10
123127
for _i in range(times):
124128
for v in hello_values:
125129
tt.bidir_byte = v
126-
time.sleep_ms(delay_interval_ms)
130+
time.sleep_ms(delay_interval_ms - short_delay_ms)
127131

128132
tt.bidir_byte = 0
129-
time.sleep_ms(int(delay_interval_ms/10))
133+
time.sleep_ms(short_delay_ms)
130134

131135
tt.bidir_byte = 0
132-
time.sleep_ms(int(delay_interval_ms/2))
136+
time.sleep_ms(short_delay_ms * 3)
133137

134138
tt.clock_project_stop()
135139

0 commit comments

Comments
 (0)