Gallery, Projects and General > Project Logs |
DIY tablet computer, maybe. |
<< < (15/22) > >> |
S. Heslop:
Turned out the trick was to save and exit so there was nothing to undo before uploading the new program. Seems like i've made some progress though. All my troubles were caused by a stupid syntax error in the if statement that made it ignore the query and just spam the function inside as fast as possible. I was puzzling over if the device was broken since I had a real hard time in the past trying to read a potentiometer value. So now I just need to copy this function 20 times for each shortcut I want to slap in. |
S. Heslop:
Nice. Now it's working for reals. Got undo and redo set to keys. The problem I had is that theres a function to start the keyboard press, and a function to end that keypress. But because alot of the key combos share a key (ctrl) then having each individual function doing its own 'else - end key press' thing was mucking it up. So now i've got a bunch of integers to keep track of if a key has been previously pressed before running the release function once. Or something. I'm not great at programming. Now I just need to figure out what shortcuts are worth assigning to buttons. Since the thing also works as a plain old digitizer with the display off, i'm considering the idea of ditching both my second desktop monitor and the old graphics tablet and using it to fill both roles. I'm always fighting for desk space so something you'd need to slide around and drag through the piled up junk wouldn't be ideal. Perhaps a cantilevered arm. But even if you could lock it it's not going to be very solid. Gives me something to think about while I type out this stupid function 15 more times. |
S. Heslop:
I've been all about trying to find a damned displayport cable with no success. It's something I get hung up on actually, that physical shops never stock anything small that they wont be selling at least one a day. But they could just shove one of them in the store room or on the bottom of a shelf and it'd justify my trip out and maybe make me want to visit that shop again. They're all wondering why the internet has killed the highstreet but the internet is innocent of that crime - the highstreet committed suicide. That said I enjoyed the trip out just driving about. There's a new radio station thats some combination hospital and student radio, but I think they might be breaking the law since they're playing Good Music. |
Will_D:
--- Quote from: S. Heslop on August 15, 2018, 08:05:41 AM ---There's a new radio station thats some combination hospital and student radio, but I think they might be breaking the law since they're playing Good Music. --- End quote --- I highly recomend Radio Nova in Dublin - plays our sort of music! Any station that plays Thunderclap Newman and the Doors has to be #1 https://www.nova.ie/radio-player Will |
sparky961:
--- Quote from: S. Heslop on August 14, 2018, 11:17:12 AM ---I'm not great at programming. ... Gives me something to think about while I type out this stupid function 15 more times. --- End quote --- Number one rule of programming: Avoid duplication. :) |
Navigation |
Message Index |
Next page |
Previous page |