mirror of
https://github.com/google/mozc-devices.git
synced 2025-11-08 16:53:28 +03:00
Change the brightness
This commit is contained in:
@@ -21,7 +21,7 @@ import time
|
|||||||
LED_RED.blink(1)
|
LED_RED.blink(1)
|
||||||
LED_CHASSIS.on()
|
LED_CHASSIS.on()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
LED_CHASSIS.set_brightness(5)
|
LED_CHASSIS.off()
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
@@ -52,7 +52,7 @@ def main():
|
|||||||
|
|
||||||
LED_RED.off()
|
LED_RED.off()
|
||||||
LED_BLUE.blink(1)
|
LED_BLUE.blink(1)
|
||||||
LED_CHASSIS.set_brightness(15)
|
LED_CHASSIS.set_brightness(5)
|
||||||
|
|
||||||
print('Ready. Please input your scrrible.')
|
print('Ready. Please input your scrrible.')
|
||||||
while True:
|
while True:
|
||||||
@@ -69,7 +69,7 @@ def main():
|
|||||||
LED_RED.on()
|
LED_RED.on()
|
||||||
result = predictor.predict_top_n(data, 5)
|
result = predictor.predict_top_n(data, 5)
|
||||||
LED_RED.off()
|
LED_RED.off()
|
||||||
LED_CHASSIS.set_brightness(15)
|
LED_CHASSIS.set_brightness(5)
|
||||||
|
|
||||||
print('\n=== RESULTS ===')
|
print('\n=== RESULTS ===')
|
||||||
for item in result:
|
for item in result:
|
||||||
|
|||||||
Reference in New Issue
Block a user