Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: KurtE

Page 1 of 10 1 2 3 4

Search: Search took 0.04 seconds.

  1. Yes you can return arrays or in your case a...

    Yes you can return arrays or in your case a pointer to a double variable.

    BUT: The first issue is when you return it, now what you return... That is you should probably just have one return...
  2. Also there are other issues with this function as...

    Also there are other issues with this function as well: Example lets simply concentrate on filling in the array and remove the return statements.
    You have something like:

    double...
  3. Replies
    1
    Views
    18

    Sorry it is hard to answer questions like this. ...

    Sorry it is hard to answer questions like this. As it is difficult to know what your actual issue is.

    For example what does this actually mean?

    Are you saying that ice crystals form on the...
  4. Again it really may not help much to spread this...

    Again it really may not help much to spread this out over at least three threads now.

    This code will not work, maybe many reasons, but one most obvious is your return statements!

    It looks...
  5. Replies
    181
    Views
    185,312

    Did you try simply editing the one file/line I...

    Did you try simply editing the one file/line I mentioned in the other thread? I believe that all of this stuff has been included in the main USB stuff when you set the JOYSTICK_SIZE to 64...

    And...
  6. Personally I think this is barking up the wrong...

    Personally I think this is barking up the wrong tree! void *
    To me says kick me, kick me... That is there is no type checking or anything else to help make sure your are passing the right type of...
  7. Replies
    3
    Views
    139

    Have you tried the recovery process? Simply hold...

    Have you tried the recovery process?
    Simply hold the program button down for something like 20 seconds, until the little red led near usb comes on and release. It should then stay on and reprogram...
  8. Sorry, but I have no idea of what you are saying...

    Sorry, but I have no idea of what you are saying here. Likewise I have no idea on how/if your code would work. That is:

    void Loop()
    {
    double *p=0;

    unsigned long...
  9. Replies
    1
    Views
    63

    This looks like it is a duplicate of your other...

    This looks like it is a duplicate of your other thread: https://forum.pjrc.com/threads/63215-Teensy-4-1-Joystick-Support
  10. Replies
    4
    Views
    194

    There are two standard configurations of the USB...

    There are two standard configurations of the USB Joystick code that is part of Teensyduino...

    You might want to look at the thread: https://forum.pjrc.com/threads/23681-Many-axis-joystick

    Look...
  11. Sorry, I don't do much floating point output, to ...

    Sorry, I don't do much floating point output, to know if there is anything better to convert doubles to strings...

    Althought I believe you can do something like tft.print(*p, 21);

    And if you...
  12. As @defragster has mentioned, Paul tried to...

    As @defragster has mentioned, Paul tried to maintain has much common pin functionality that he could do between the boards. But each of these processors map different functionality to different...
  13. The order I mentioned was your defines: ...

    The order I mentioned was your defines:

    #define PinCamD0 14 // AD_B1_02
    #define PinCamD1 15 // AD_B1_03
    #define PinCamD3 16 // AD_B1_07
    #define PinCamD2 17 // AD_B1_06
    #define...
  14. I am sort of curious about these so ordered a...

    I am sort of curious about these so ordered a cheap (< $10) pair from Amazon, that should get here end of week...

    Not sure how much I will do or not, but at worst they end up in my Sensors box ;)...
  15. Sorry I have sort have been following this thread...

    Sorry I have sort have been following this thread but not responding...

    Again I wonder about things like: assumptions about VSYNC... and the like:
    If I look at the Datasheet:...
  16. Replies
    1
    Views
    102

    The simplest thing to do is to use the...

    The simplest thing to do is to use the attachInterrupt()... code.

    But if you don't want to use it, look at it... (interrupt.c)

    You will see that for T4.x we don't have fixed names for...
  17. Frame buffer can make it easier to work work...

    Frame buffer can make it easier to work work without flicker... Of course you again do this without using DMA. just use tft.updateScreen() instead.

    Likewise you can probably write all of this...
  18. Note: the library only does DMA if you call the...

    Note: the library only does DMA if you call the async to update.

    And yes you should not start up a new update until the previous one failed. There is code in there to try to fail the update if...
  19. Replies
    15
    Views
    288

    Might help to actually see what is hooked up to...

    Might help to actually see what is hooked up to what?

    That is we know the Sparkfun works with SPI. But it looks like it is a different setup? This one?...
  20. Replies
    36
    Views
    452

    Again I would suggest check your wiring. My...

    Again I would suggest check your wiring.

    My one arrived today, I hooked it up to a T3.6 ... Quick and dirty

    21786

    I ran the unedited Adafruit library test program:

    ...
  21. Sorry, hope we will figure it out soon. ...

    Sorry, hope we will figure it out soon.

    Debugging things like this can be a real pain... Problem is it is hard for me to help much as I don't have your setup...

    So can only help steer you. ...
  22. Replies
    7
    Views
    263

    I did a quick and dirty and added the entry and...

    I did a quick and dirty and added the entry and build on RPI and was able to program a T4.1 with a simple fast blink program.

    I also updated Readme file:...
  23. Should mention, there are ways for you to talk to...

    Should mention, there are ways for you to talk to second PC through the host if you desire. At least by simple Serial...

    That is we support many of the USB to Serial adapters (FTDI, PL2303,...
  24. Serial.flush(); Which is the exact same code as...

    Serial.flush();
    Which is the exact same code as : Serial.send_now();

    Tells the USB Serial code to send what it has currently in the buffer and not wait until the buffer is full or there is a...
  25. Again need to localize down your issue. Note:...

    Again need to localize down your issue.

    Note: HX... display by Adafruit - Does not need MISO pin as the device is read only... Unless you are using something like the SD card on the display.
    ...
  26. Sorry, but I am not sure how much I can help. ...

    Sorry, but I am not sure how much I can help.

    Other than make suggestions on helping you debug it.

    Things like: When you say the screen freezes, does that simply mean the screen no longer...
  27. Replies
    7
    Views
    263

    Yep - It only adds it in part way... Still don't...

    Yep - It only adds it in part way... Still don't have any of the information about time, but that is also true for T4...

    Would also be good to update the Readme file and website as well.
  28. Replies
    7
    Views
    263

    I have not tried it yet, but it might be as...

    I have not tried it yet, but it might be as simple as adding one line to the sources:

    } MCUs[] = {
    {"at90usb162", 15872, 128},
    {"atmega32u4", 32256, 128},
    {"at90usb646", 64512, ...
  29. Replies
    4
    Views
    201

    In most cases like this you need to look at the...

    In most cases like this you need to look at the sources... and manual:

    PWM: Depends on which pin... Some are FlexPWM and others are Quad timers.

    I believe the default F_BUS_ACTUAL is 150000000...
  30. Sorry I have not had a chance to look more at...

    Sorry I have not had a chance to look more at your code.

    But Will try to answer some: Your setup code starts off like:

    void setup()
    {

    pinMode(buttonPin,INPUT);
    ...
  31. Again maybe it would help to see link to which...

    Again maybe it would help to see link to which one you actually have.

    For example: I see this one: https://www.hobbytronics.co.uk/mfrc522-reader
    And I see it for sale in a few other places.
    ...
  32. As always when typed in on the fly you can run...

    As always when typed in on the fly you can run into issues. Especially for stuff I simply copied from your previous post...

    After fixing your dataArray... (Also moved it after the previous...
  33. Sorry, Maybe it is just me, but it is unclear...

    Sorry, Maybe it is just me, but it is unclear from your description what your issue is?

    For example is it that your code is not working or, you are having issues getting both devices to work with...
  34. Replies
    2
    Views
    141

    Sorry never heard of the r4 library. As for...

    Sorry never heard of the r4 library.

    As for which library to use...

    You of course also have the option of using the Adafruit library.

    Depending on your needs, you can use any of them. I...
  35. Replies
    5
    Views
    163

    I am not sure if it would help much, but I do...

    I am not sure if it would help much, but I do have a sketch I posted about yesterday (with a PR to add to hopefully next release of Teensyduino), that prints out a lot of information about device...
  36. Sorry, I have not gone through all of the flicker...

    Sorry, I have not gone through all of the flicker free code or the like, to know if for example they ever do anything like updateScreenAync or the like. That is the only case that the HX... library...
  37. Replies
    5
    Views
    163

    Looks like everything about this USB device is...

    Looks like everything about this USB device is vendor specific...

    You already turned on the main debug output code.

    But: many of the source files have debug code commented out. As being too...
  38. Sorry was simply trying to answer your original...

    Sorry was simply trying to answer your original question as best as I understood it. Sorry I am not going to watch 8 videos...


    A very Simple, don't have to think much way to, do this is with...
  39. Replies
    7
    Views
    290

    Sorry I did not see this thread either, but there...

    Sorry I did not see this thread either, but there have been a few others recently...

    The simplest one is to use a simple USB extension that converts to a something you like.

    Maybe something...
  40. Note: I have never used unsigned long long int...

    Note: I have never used unsigned long long int before, my understanding is it should create 64 bit variable, but guessing.

    So did a quick and dirty using uint64_t instead as then I know it should...
  41. Replies
    129
    Views
    19,462

    Quick note (mostly talking to myself)... Added...

    Quick note (mostly talking to myself)...
    Added another class (2 files) to example sketch which implement a USB class that only does the claim method... And never claims, but prints out information...
  42. Replies
    129
    Views
    19,462

    Again can only do so much to help support these...

    Again can only do so much to help support these devices when I don't have any such device...

    However as I have mentioned, I have done a new example, which is in a new branch of my Fork and have...
  43. Replies
    129
    Views
    19,462

    I went ahead and added my current version of this...

    I went ahead and added my current version of this sketch to my branch of the library (https://github.com/KurtE/USBHost_t36/tree/HIDDeviceInfo-Example) and issued a Pull Request:...
  44. Replies
    4
    Views
    201

    Also note: when a teensy ships the code is setup...

    Also note: when a teensy ships the code is setup that it does not have USB type of serial, so will not respond to Serial reboots..

    So for new boards, I will typically use a simple blink program. ...
  45. Sometimes hard to know what is going on, when we...

    Sometimes hard to know what is going on, when we can not see the code... Or output.... Also I am not much of a Linux expert, but maybe whatever you are using to see the Serial input is getting...
  46. The wire parameter is at the end and a pointer,...

    The wire parameter is at the end and a pointer, and wire1 should be Wire1 (case sensitive) ... So: BME280 bme2(wire1, 0x76);

    Try something like: BME280 bme2(0x76, &Wire1);
  47. Replies
    129
    Views
    19,462

    With Keyboards, Most keyboards mark themselves as...

    With Keyboards, Most keyboards mark themselves as boot devices and there is a fixed known format for them.

    However for example I did plug in a Dell Multimedia keyboard and I may extend my code...
  48. Replies
    129
    Views
    19,462

    I am having some fun as well. Here is an...

    I am having some fun as well.

    Here is an updated version with a little more goodies which I will flesh out some more here...

    In particular for many of the usages, it gives a logical Name to...
  49. Replies
    129
    Views
    19,462

    To try to get some additional information, I...

    To try to get some additional information, I hacked up a real simple HID client subclass that dumps out data as it runs.

    It simply prints out the data that the HID parser class is sending to it,...
  50. Replies
    829
    Views
    30,732

    Afternoon now... I did some hacking up of a...

    Afternoon now...

    I did some hacking up of a dump HID inputs... Maybe take a look and see what you think?
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4