12/10/2023 0 Comments Arduino button![]() 6 1kOm resistors (used for OneWireKeyboard) On the pic you can see corresponded pit combo sended to the game change both & rear tires, clear windscreen and made fast repair decrease both front & rear tires pressure by 7 So on the pic above it shows (from left to right): red button serves to send pit combo to iRacingĪlso I added led screen to view and check what pit combo will be. encoder on the top-right used to indicating how much fuel to add 2 spring return switches on right side used to request to increase/decrease tire`s pressure bottoms encoders acts like right & left arrow keys (left one) and up & down arrow keys (right one) green ON-OFF switches used for request to clear windscreen (left one) and fast repair (right one) red ON-OFF switches used for request to change tires - front (top one) and rear (bottom one) Idea is to form pit combo by special switches/encoders and then just push button and viola - pit combo was send! Sketch adapted to V2 joystick library, also fixed issue with 4th encoderĢnd version of buttonbox was build for iRacing pitting service. ![]() Added support of halfstep encoders, if you have those, uncomment the following line in the sketch Virtual buttons are pressed for a duration of real buttons presses now. You have to download Joystick library for it:Īnd please be sure you are using Arduino IDE version 1.6.6 or above ![]() Wiring, capabilities, etc are the same, but windows sees device as Joystick first encoder acts like right arrow key when CCW rotation and left arrow key when CW rotation, etcĪlso I wrote sketch which allows a buttonbox acts as joystick instead of keyboard. You can change it to different chars if you needed.Īlso, in order to minimize possible interference with already assigned buttons I send keypressed with LEFT_CTRL + LEFT_ALT, so buttonbox send 3 keys combinations like LEFT_CTRL + LEFT_ALT + 'a', LEFT_CTRL + LEFT_ALT +'w', etcĮncoder`s "keys" are defined in struct "rotaries": You can use any number of buttons up to 25 and any number of encoders up to 4 - no sketch modification is needed!įor example, I use only 15 buttons (4 switches + 4 buttons + 3 encoders buttons), so my matrix is 4x4 and I wired it`s rows to 21, 20, 19, 18 pins and columns to 14, 16, 10, 9 pinsīuttonbox acts as standard keyboard, it send chars which are defined in struct "buttons" The sketch supports up to 25 buttons and up to 4 encoders. I know, a lot of diyers use Teensy for building buttonboxes, but more choices is better, right?ġst version is standard universal buttonbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |