mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
added notes about launch on boot
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
11
notes.txt
11
notes.txt
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user