[–] [S] 1 point 2 years ago* (last edited 2 years ago)

I've actually got all the code to work now except the joystick part, which is the biggest (new) part for me for this keeb. I've been on the QMK discord (that's how I knew to update QMK to resolve QK_BOOT haha, although I'm not entirely sure the combo works...) What do you mean read the joystick input pins once per scan instead of in every if statement?

edit: yeah config_common is deprecated according to the QMK discord. very unfortunately I actually have no idea what I'm doing with QMK/C++ code (esp the joystick part) in general and have just been kinda sticking things I've found on the internet in in hopes of something working out but no luck so far

  • source
  • parent
  • context
  • [–] [S] 1 point 2 years ago (3 children)

    I've tried to rewrite the joystick code and now am getting different errors:

    Compiling: quantum/keymap_introspection.c                                                           [OK]
    Compiling: quantum/command.c                                                                        [OK]
    Compiling: tmk_core/protocol/host.c                                                                tmk_core/protocol/host.c: In function 'host_joystick_send':
    tmk_core/protocol/host.c:171:10: error: 'report_joystick_t' {aka 'struct '} has no member named 'axes'
             .axes =
              ^~~~
    tmk_core/protocol/host.c:172:13: error: extra brace group at end of initializer
                 {
                 ^
    tmk_core/protocol/host.c:172:13: note: (near initialization for 'report')
    tmk_core/protocol/host.c:172:13: error: excess elements in struct initializer [-Werror]
    tmk_core/protocol/host.c:172:13: note: (near initialization for 'report')
    cc1: all warnings being treated as errors
     [ERRORS]
     | 
     | 
     | 
    gmake[1]: *** [builddefs/common_rules.mk:361: .build/obj_eiris_default/protocol/host.o] Error 1
    gmake: *** [Makefile:392: eiris:default] Error 1
    Make finished with errors
    

    Also, I'm not sure if I need "#include "config_common.h" in my config.h file? I see it in some other config.h files. When I have that in my config.h file, it gives a fatal error: No such file or directory

  • source
  • parent
  • context
  • [–] [S] 1 point 2 years ago* (last edited 2 years ago) (7 children)

    Yes there's one extra column on the left.

    I'd spotted that error but forgot to update the Google drive after updating the .h file. I'll try adding no pin!

    Thank you!

    Edit: that solved the LAYOUT errors!

    Now it's just the QK_BOOT and joystick code errors

  • source
  • parent
  • context
  •  

    I'm having trouble figuring out what's wrong with my files for compiling. the initial errors are pointing to the .h and corresponding part in the keymap.c files but it seems fine to me? i haven't even managed to get to figuring out the joystick part which is where i thought i would start having a bunch of trouble

    Unsure the best way to show files but I don't think copy pasting them into the body of this post would be best so I've uploaded here: https://drive.google.com/drive/folders/1WKobV73ZdovPCUUcp0jLBLaX8L6IFEmp?usp=drive_link

    The txt file shows the error text I get when trying to compile

    Thank you

    [–] 2 points 2 years ago (2 children)

    I haven't started experimenting around with the code for joysticks but am in the middle of making a keyboard (half) with a joystick. Did you find it worked ok just for acting as keyboard keys/combinations of keys?

    I see under the 'Accelerated' portion where you tried to emulate mouse keys there weren't really any results?

  • source
  • [–] 3 points 2 years ago

    If you're talking about long term working out, motivation will not cut it. It has to be determination/making it a habit. Like - "Time to take a shower", "time to workout".

    But working out doesn't mean you have to push yourself till you feel like puking. Start small, do 10 squats at lunch and another 10 when you finish your work day for e.g.. Do something you find fun, not something that's just "well running is exercise so I guess I have to do that"

  • source
  • parent
  • context
  • submitted 3 years ago* (last edited 3 years ago) by to c/askuk@feddit.uk
     

    So all (that I've bought from) supermarkets sell their salmon fillets with scales on. Do you descale it before pan frying?

    Sainsbury's; morrisons; tesco are the supermarkets I've bought salmon fillets from mainly

    Edit: Please stop assuming I'm a dumbass who doesn't know what scales look like. We have established that YES, SCALES ARE PRESENT, I AM NOT MISTAKING SKIN FOR SCALES BECAUSE I HAVE EYES. They are on the fillets, and if you haven't noticed them, then feel free to not participate in this post.

     

    When on lemm.ee, the instance I have an account on, I don't see comments on a post in another instance (lemmy.world), so I cannot interact with/reply to a comment on that post. When I go to lemmy.world itself and go to that post, I see comments. However, since I don't have an account on that instance, I cannot interact with that post.

    I'm still incredibly new to lemmy/the fediverse/etc etc so please let me know what I'm doing wrong!

    Screenshots of instances/comments: https://imgur.com/a/MU3CXFw

    view more: next ›