c++ #include "stdio.h" #include "pico/stdlib.h" #include "pico/cyw43_arch.h" int main() { // Initialize all standard IO stdio_init_all(); // Assign pin as an unsigned integer for GPIO functions //const uint led_pin = 25; // Initialize LED pin //gpio_init(led_pin); // Set the GPIO pin as an output //gpio_set_dir(led_pin, GPIO_OUT); // Boot sequence printf("Please select what connection type is being used. USB (1) or LCD (2): "); char userInput; userInput = getchar(); if(userInput == '1'){ main_menu_serial(); // These functions have been excluded from the help post for simplicity sake boot_title_serial(); // These functions have been excluded from the help post for simplicity sake printf("Done."); } else if(userInput == '2'){ printf("\n"); printf("Why do you do this to me.\n"); } else{ printf("\n"); printf("Input is invalid!\n"); } }
File "/home/nengyi/.local/lib/python3.12/site-packages/luma/oled/device/__init__.py", line 79, in __init__ self.command( File "/home/nengyi/.local/lib/python3.12/site-packages/luma/core/device.py", line 48, in command self._serial_interface.command(*cmd) File "/home/nengyi/.local/lib/python3.12/site-packages/luma/core/interface/serial.py", line 93, in command self._bus.write_i2c_block_data(self._addr, self._cmd_mode, File "/home/nengyi/.local/lib/python3.12/site-packages/smbus2/smbus2.py", line 643, in write_i2c_block_data ioctl(self.fd, I2C_SMBUS, msg) BlockingIOError: [Errno 11] Resource temporarily unavailable
/usr/bin/rpicam-vid --width 2592 --height 1944 --denoise auto -q 95 --framerate 15 -t 0 --codec mjpeg -n --inline -o /dev/null -v 2And here is when it failed:
Viewfinder frame 11795 FileOutput: output buffer 0x7f88206ee0 size 1286506 Viewfinder frame 11796 FileOutput: output buffer 0x7f84206ee0 size 1286495 FileOutput: output buffer 0x7f88206ee0 size 1285292 Viewfinder frame 11797 Viewfinder frame 11798 FileOutput: output buffer 0x7f88206ee0 size 1286986 FileOutput: output buffer 0x7f94206ee0 size 1287131 ^CReceived signal 2 ^CReceived signal 2 ^CReceived signal 2 Terminated