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.05 seconds.

  1. You are welcome. And yes same as button. From...

    You are welcome. And yes same as button. From the pjrc web page with schematics...
    21867

    I would also maybe see if a simple change in sketch maybe helps

    In setup maybe something like:

    void...
  2. Sorry not really any reasonable ideas, and would...

    Sorry not really any reasonable ideas, and would start with Paul's suggestions.

    Some other things I would look at include:

    a) Does it appear like the Teensy is powered up in some of your...
  3. Replies
    4
    Views
    134

    As @Jonr stated... you could timestamp... But...

    As @Jonr stated... you could timestamp...

    But it will likely depend on your specific desired requirements...
    That is how often are you doing samples? For example suppose you are doing 100 per...
  4. Replies
    3
    Views
    149

    Sorry, I am not sure if there is any easy answer...

    Sorry, I am not sure if there is any easy answer to this, nor any tutorials,

    The way I have learned about doing DMA, is by looking at other code doing DMA... Plus looking through the reference...
  5. I probably have one of these although it came...

    I probably have one of these although it came with a small ribbon cable and small adapter part which I never tried and probably lost... I have a 5" with their resistive.
    I also have a couple of...
  6. Replies
    2
    Views
    76

    I assume a T3.x? As 14 is not a SCK pin on T4.x....

    I assume a T3.x? As 14 is not a SCK pin on T4.x.

    I did a quick look at ethernet library and did not find anywhere it did stuff with the SPI pins... But I might have missed it.
  7. Looks like fun. I have done some larger hats for...

    Looks like fun. I have done some larger hats for other RPI boards, but not for the Pi zero...

    Could be an interesting product.
  8. There is no real state machine stuff here. ...

    There is no real state machine stuff here. Typically state machine is usually something like, I am in state X, if condition Y happens I go to state Z...

    This is just a simple set of nested if...
  9. Which display do you have? Which library are you...

    Which display do you have? Which library are you using, which example?
  10. Again look at your loop code: void loop() { ...

    Again look at your loop code:

    void loop()
    {

    if (firstsecond >= 1000)
    {

    if (TCmillis >= 50)
    {
  11. Quick note on warnings: The lines: ...

    Quick note on warnings: The lines:

    C:\Users\Bpierik\Documents\Arduino\libraries\Adafruit_MAX31855_library/Adafruit_MAX31855.h:49:32: warning: passing NULL to non-pointer argument 1 of...
  12. Replies
    6
    Views
    137

    Actually I understand what a break signal is. ...

    Actually I understand what a break signal is. Maybe not exactly the underlying timing...

    BUT what you are mentioning is what it would do on a hardware UART. What is unclear is what does it do...
  13. Replies
    2
    Views
    181

    I believe maybe @FrankB may have library to help...

    I believe maybe @FrankB may have library to help show memory usage and the like...

    I do have an example sketch in the ST7735 library (uncannyEyes_asyc_st7789_240x240... which has some stuff I...
  14. Replies
    6
    Views
    137

    A couple of quick notes. There is no FTDI chip...

    A couple of quick notes. There is no FTDI chip on the Teensy boards. They all have processors with built in USB support.

    I am not sure what the PC sends when you do that in Java.

    I believe...
  15. In the case of needing 45-55 duty cycle, what...

    In the case of needing 45-55 duty cycle, what about 37.5mhz?

    Example sketch:

    void setup() {
    analogWriteFrequency(0, 30000000);
    analogWrite(0, 128);
    analogWriteFrequency(1,37500000);
    ...
  16. Replies
    483
    Views
    297,616

    My guess is it probably can. I have not used the...

    My guess is it probably can. I have not used the syncRead before, but I have done analogReads on an IntervalTimer...

    For example with my never finish Well monitoring code, that reads in 4 analog...
  17. @PhillB - I second that! For example you can...

    @PhillB - I second that!

    For example you can get cheaper ILI9341 displays than the one Paul or Adafruit sell, but you also pay for them to test them first to make sure they might actually work....
  18. Again whenever possible I try to: Keep it Simple...

    Again whenever possible I try to: Keep it Simple Stupid (KISS) ;)

    So here is a quick hacked up version of your sketch where I removed all of the transactions. Instead of sensors it just...
  19. But again why do you continue to call...

    But again why do you continue to call SPI.beginTransaction/endTransaction when it will be called internal to the calls to the sensors?
    Why do you also continue to do so in the display area, when...
  20. Again - always look for the simple stuff first. ...

    Again - always look for the simple stuff first.

    I always reformat the text to make sure things are what you think they are so for example loop:

    void loop()
    {
    if ((millis() -...
  21. Sorry, it is difficult to give you any hard...

    Sorry, it is difficult to give you any hard recommendations on what is best or the like, as we don't really know your actual requirements or what all your plans are...
    And many of us try to help,...
  22. I believe there is another way as well... At...

    I believe there is another way as well... At least I have been able to update two Teensy boards at the same time and same program using TyCommander.

    There are several threads on it including:...
  23. I boiled your loop() down to something really...

    I boiled your loop() down to something really basic:

    void loop()
    {
    if ((millis() - TC_previousMillis) >= 500)
    {
    Temperature = Thermocouple(); //just a variable double.

    ...
  24. Sorry I am not sure we are seeing the whole...

    Sorry I am not sure we are seeing the whole thing, and hard to know what is going on... Example:


    if (TC_currentMillis - TC_previousMillis >= 500)
    {
    Serial.print("TC start Millis in ms =...
  25. @bastiaan: I hear you, we have all been there. ...

    @bastiaan: I hear you, we have all been there. For example just ask me how to do something in JAVA, and I am lost... (Or busy with google)...

    There are many different ways for you structure your...
  26. I don't think all of the pins are on the T4.1 ...

    I don't think all of the pins are on the T4.1
    For example: CSI_DATA00 is on GPIO_B1_10 ALT2
    Which we do not have on T4.x We have GPIO_AD_B1_10 on which is different...

    What I don't know is if...
  27. Thanks Paul, I was just beginning to type in...

    Thanks Paul, I was just beginning to type in something similar... Sometimes I am torn between trying to answer the questions that are asked versus answer in the way that I would probably do it for...
  28. 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...
  29. 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...
  30. Replies
    1
    Views
    94

    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...
  31. 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...
  32. Replies
    181
    Views
    185,526

    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...
  33. 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...
  34. Replies
    3
    Views
    205

    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...
  35. 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...
  36. Replies
    1
    Views
    74

    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
  37. Replies
    4
    Views
    207

    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...
  38. 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...
  39. 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...
  40. 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...
  41. 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 ;)...
  42. 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:...
  43. Replies
    1
    Views
    113

    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...
  44. 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...
  45. 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...
  46. Replies
    15
    Views
    302

    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?...
  47. Replies
    36
    Views
    471

    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:

    ...
  48. 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. ...
  49. Replies
    7
    Views
    281

    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:...
  50. 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,...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4