added notes about launch on boot

This commit is contained in:
dekunukem
2021-12-11 22:53:52 +00:00
parent 2ab29e06dd
commit e35f130c96
4 changed files with 15 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ typedef struct
typedef struct
{
int16_t movement_x;
int16_t movement_x;=x
int16_t movement_y;
int16_t scroll_vertical;
uint8_t button_left;

View File

@@ -161,10 +161,11 @@ void ps2mouse_update(void)
if(ps2mouse_get_outgoing_data(this_mouse_event, &my_ps2_outbuf))
{
// no need to send out packets
// if return value is not 0, no need to send out packets
ps2mouse_buf_pop(&my_ps2mouse_buf);
return;
}
// only pop the item if sending is complete
if(ps2mouse_send_update(&my_ps2_outbuf) == 0)
ps2mouse_buf_pop(&my_ps2mouse_buf);
}

View File

@@ -50,3 +50,14 @@ cat /proc/interrupts
change keyboard LED
sudo bash -c 'echo 1 > /sys/class/leds/input5\:\:capslock/brightness'
run script on launch:
https://raspberrypi-guide.github.io/programming/run-script-on-boot
sudo nano /etc/rc.local
cd /home/pi/usb4vc; sudo python3 usb4vc_main.py &
kill -SIGINT pid

View File

@@ -7,7 +7,7 @@ import usb4vc_oled
RPI_APP_VERSION_TUPLE = (0, 0, 1)
# usb4vc_oled.print_welcome_screen(RPI_APP_VERSION_TUPLE)
usb4vc_oled.print_welcome_screen(RPI_APP_VERSION_TUPLE)
# time.sleep(5)
# usb4vc_oled.oled_clear()