mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
pico hid: dip fix
This commit is contained in:
@@ -127,7 +127,8 @@ int main(void) {
|
||||
gpio_init(_COMM_PIN);
|
||||
gpio_set_dir(_COMM_PIN, GPIO_IN);
|
||||
gpio_pull_up(_COMM_PIN);
|
||||
_comm_use_spi = !gpio_get(_COMM_PIN);
|
||||
sleep_ms(10); // Нужен небольшой слип для активации pull-up
|
||||
_comm_use_spi = gpio_get(_COMM_PIN);
|
||||
_COMM(init, _data_handler, _timeout_handler);
|
||||
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user