![]() You can try to capture still image frames import cv2 The built-in camera of M5Stack UnitV2 is located at /dev/video0. Line = uart_grove.readline() # read a '/n' terminated line Camera read( 10) # read up to ten bytes (timeout) # encode is for converting the string to bytes, or you can directly send bytes # Open the serial port, and set the baudrate to 115200 ![]() Execute the command from the command line, record audio and save it to a fileĪrecord -d 20 -r 48000 -c 2 -f S 16_LE audio.wav. ![]() write(str( value)) # Set the calute, '1' or '0' for i in range( 10):Īudio_cmd = Īudio_source = subprocess. write( 'out') # Set the direction of the GPIO open( '/sys/class/gpio/gpio1/value', 'w'). write( '1') # Export the GPIO0 open( '/sys/class/gpio/gpio1/direction', 'w'). write(str( value)) # Set the calute, '1' or '0' write( 'out') # Set the direction of the GPIO open( '/sys/class/gpio/gpio0/value', 'w'). write( '0') # Export the GPIO0 open( '/sys/class/gpio/gpio0/direction', 'w'). Select the program step by step according to the program comment, and then click the run button above to experience online debugging of the device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |