Skip to content

makerviet/Arduino-PS2X-ESP32-Makerbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giới thiệu

Thư viện tay cầm PS2 dành cho mạch VIA Makerbot ESP32 Thư viện này giúp các bạn có thể sử dụng tay cầm PS2 cho mạch VIA Makerbot

Thư viện này là 1 bản sao thư viện tay cầm PS2 của 2 tác giả madsci1016MyArduinoLib được chỉnh sửa lại để sử dụng với mạch VIA Makerbot ESP32

Sử dụng thư viện PSX2 với mạch Makerbot BANHMI

Khởi tạo thư viện:

  while (error != 0) {
    delay(1000);// 1 second wait
    //setup pins and settings: GamePad(clock, command, attention, data, Pressures?, Rumble?) check for error
    error = ps2x.config_gamepad(PS2_CLK, PS2_CMD, PS2_SEL, PS2_DAT, pressures, rumble);
    Serial.print("#try config ");
    Serial.println(tryNum);
    tryNum ++;
  }

About

Thư viện tay cầm PS2 cho ESP32 -sử dụng với mạch VIA Makerbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%