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

Search:

Type: Posts; User: BriComp

Page 1 of 6 1 2 3 4

Search: Search took 0.00 seconds.

  1. Thread: SDRecords

    by BriComp
    Replies
    1
    Views
    105

    Rather than having to go off to GitHub I have...

    Rather than having to go off to GitHub I have imported the README.md file below.
    It looks better in an .md editor!
  2. Replies
    26
    Views
    317

    Any Good?...

    Any Good?
    SdFat is reported to be faster than SD. On Teensy SD incorporated SdFat.
  3. Thread: SDRecords

    by BriComp
    Replies
    1
    Views
    105

    SDRecords

    Hi,

    I have just posted a library (my first!) to GitHub.
    It allows easy storage and retrieval of data records on SD cards.
    Please have a look and let me know if it is likely to be useful and any...
  4. Why do you want to use cli's what is wrong with...

    Why do you want to use cli's what is wrong with using teensyduino?
  5. Replies
    14
    Views
    249

    You write a Windows program to send commands to...

    You write a Windows program to send commands to Teensy and you write a Teensy program to read the Windows commands and react accordingly.
  6. Replies
    14
    Views
    249

    You can do that if you write the Windows and...

    You can do that if you write the Windows and Teensy programs.
  7. Replies
    13
    Views
    252

    Ah must be East Coast or Eastern Canada.

    Ah must be East Coast or Eastern Canada.
  8. @Jonr was correct in his statement made in msg14...

    @Jonr was correct in his statement made in msg14 above.
    Although the code compiled and ran it did not give a valid answer.
    I have included a test program to demonstrate that below.
    Although you...
  9. At last, got it to work. I don't know how, it...

    At last, got it to work. I don't know how, it should not, but it seems to.
    Check it out.

    // Visual Micro is in vMicro>General>Tutorial Mode
    //

    //

    typedef uint8_t arrayTypeA[8];
    typedef...
  10. ok, so the only way my thing would work was if it...

    ok, so the only way my thing would work was if it became something like:-

    typedef uint8_t arrayPart[8];

    typedef union fred {
    arrayPart B[32];
    unsigned long long BbyAnotherName[32];...
  11. I see now that you are trying to compare an...

    I see now that you are trying to compare an uint8_t array[8][32] with another one.
    If it had just been 8byte chunks the following might have been the way to go.



    typedef uint8_t arrayPart[8];...
  12. What are you trying to compare the [8] byte long...

    What are you trying to compare the [8] byte long data or the [32] long data, ie an array[8] of 32 byte entities or an array[32] of 8 byte entities?
    The latter is really easy.
  13. About 4mA.

    About 4mA.
  14. Teensyduino 1.54b12 seems to have fixed this.

    Teensyduino 1.54b12 seems to have fixed this.
  15. Replies
    1
    Views
    464

    Teensyduino 1.54b12 seems to have fixed this.

    Teensyduino 1.54b12 seems to have fixed this.
  16. If you can't get it to work the IP is worthless!

    If you can't get it to work the IP is worthless!
  17. Replies
    80
    Views
    2,698

    Whatever changes have taken place seem to have...

    Whatever changes have taken place seem to have solved this Snooze/EEPROM problem.
    https://forum.pjrc.com/threads/66067-SNOOZE-Kills-EEPROM-ACCESS?p=268264#post268264
  18. The bike might pre-date that.

    The bike might pre-date that.
  19. Replies
    80
    Views
    2,698

    Forget what I said. I got it all wrong. Sorry!!

    Forget what I said. I got it all wrong.
    Sorry!!
  20. Replies
    2
    Views
    127

    Yea it seems I might have got it all wrong....

    Yea it seems I might have got it all wrong. Thanks for support.
    I guess I must continue trying to find my other similar problem with SD usage.
    Thanks again.
  21. Thread: Virus report

    by BriComp
    Replies
    6
    Views
    195

    Teensyduino 1.54b11 checks out fine, it's only...

    Teensyduino 1.54b11 checks out fine, it's only when the files in 1.54b11 are decompressed and installed that the problem occurs.
  22. Thread: Virus report

    by BriComp
    Replies
    6
    Views
    195

    The only way I was/am able to install Teensyduino...

    The only way I was/am able to install Teensyduino is to uninstall/delete teensyduino, uninstall BitDefender. Re-install Arduino and Teensyduino then BitDefender.
    Oh what a pain and I have 18months...
  23. Replies
    80
    Views
    2,698

    I was under the understanding that SD could open...

    I was under the understanding that SD could open more than 1 file at once. Currently it doesn't. See here https://forum.pjrc.com/threads/67609-Help-with-SD-Card
    It might be worth looking at before...
  24. @DaveAK What is wrong with the circuit that...

    @DaveAK What is wrong with the circuit that defragster highlighted for you?
  25. Replies
    2
    Views
    127

    Help with SD Card.

    #include "Arduino.h"
    #include <SD.h>
    #include <SPI.h>

    const int chipSelect = BUILTIN_SDCARD;

    File f1, f2;

    void setup()
    {
  26. Thread: Virus report

    by BriComp
    Replies
    6
    Views
    195

    Virus report

    I just received this below from BitDefender. Running Teensyduino 1.54b11
  27. Replies
    65
    Views
    1,447

    I am afraid I got confused, I thought the above...

    I am afraid I got confused, I thought the above happened after the Teensy Re-booted rather than upon crashing.
  28. Replies
    65
    Views
    1,447

    Ok, I just got confused about all mention of so...

    Ok, I just got confused about all mention of so much space being used up by the crash report when it does not matter since it is just an investigative piece of code to determined what had happened.
  29. Replies
    65
    Views
    1,447

    Ok, so how do I access the crash data to save it...

    Ok, so how do I access the crash data to save it elsewhere?
  30. Replies
    65
    Views
    1,447

    OK. The discussion was whether the formatted...

    OK.
    The discussion was whether the formatted output should be maintained as it was taking up an awful lot of program space.

    I was trying to ascertain what happens when a crash occurs and how it...
  31. Replies
    65
    Views
    1,447

    I'm sorry I don't understand ".print("const char...

    I'm sorry I don't understand ".print("const char strings data")".
  32. Replies
    65
    Views
    1,447

    If on initial crash the crash data is stored in a...

    If on initial crash the crash data is stored in a non volatile location, then a separate ino can be run to print out the Error data in a nice Formatted manner.
  33. Here is a version of the above sketch which saves...

    Here is a version of the above sketch which saves an array of the data structure.

    // Visual Micro is in vMicro>General>Tutorial Mode
    //
    /*
    Name: drummerlibrary.ino
    ...
  34. Here is a sketch which creates data, saves it to...

    Here is a sketch which creates data, saves it to SD card and reads it back for comparison. It does a little more than that but I am being lazy in not wanting to type out a description of all it does....
  35. Here is something I knocked up reading from SD...

    Here is something I knocked up reading from SD card, modifying and writing the data back to SD card.

    // Visual Micro is in vMicro>General>Tutorial Mode
    //
    /*
    Name: drummerlibrary.ino...
  36. I managed to get this to work, seems definition...

    I managed to get this to work, seems definition complexity must be outside a Union.

    // Visual Micro is in vMicro>General>Tutorial Mode
    //
    /*
    Name: drummerlibrary.ino
    ...
  37. This is what I have used in my code, and it works...

    This is what I have used in my code, and it works fine.

    /***************************************************************************
    * SLAVE Originated Data Types ...
  38. I am afraid you are wrong. Perhaps "structure" is...

    I am afraid you are wrong. Perhaps "structure" is not a very well chosen name. Replace the word structure with any other name that you wish to call your structured data. Perhaps called just that or...
  39. Yes you're correct. The number of times I looked...

    Yes you're correct. The number of times I looked at this small piece of code to make sure it was correct!!! Blame it upon my old eyes.
    Corrected bit below:-

    typedef struct drummerLibraryStruct{
    ...
  40. Oops sorry it's still got bits of my data...

    Oops sorry it's still got bits of my data structure in there.
    I've just corrected it.

    typedef struct drummerLibraryStruct{
    char title[DRUMMER_PATTERN_NAME_LENGTH] = {'n','a','m','e','...
  41. When I am using structures and union for data it...

    When I am using structures and union for data it can become seemingly difficult to name all the bits and pieces such that the code seems to make sense and is readable. Taking the example above I...
  42. Yea, could be, but why move memory in any case...

    Yea, could be, but why move memory in any case when the data can simply be addressed in a different manner and a problem solved.
    In the example shown above buf is exactly the same as message. For...
  43. When I want to send a "struct" over radio I...

    When I want to send a "struct" over radio I create a Union as exampled in the code below. Then I just address it as buf and send that.

    typedef struct drummerLibraryStruct{
    char ...
  44. Let's hope there are going to be instructions as...

    Let's hope there are going to be instructions as to how to handle the various situations, online and offline!
  45. So error code NOT being written to EEPROM? I...

    So error code NOT being written to EEPROM? I thought that was what was going to happen. That way any use condition would be covered.
  46. What happens if it is a remote device NOT...

    What happens if it is a remote device NOT connected to any I/O?
  47. That's what I am getting at. Send it to...

    That's what I am getting at. Send it to DMAMEM/RAM2 when crash occurs then on Auto re-boot, when everything is working, send it to EEPROM (or wherever). That way if the Teensy is working away from...
  48. How about moving the Error report into a...

    How about moving the Error report into a protected (from power loss) area when the Teensy re-boots and everything works ok. That way if not logged on via usb it can still be examined later.
  49. Replies
    19
    Views
    1,481

    I don't know but just a thought, does SPI.setSCK...

    I don't know but just a thought, does SPI.setSCK need to go after SPI.begin?
  50. Replies
    18
    Views
    551

    Here is information about debugging with...

    Here is information about debugging with VisualMicro.
    I have not used the debug features yet but what I do like is the ability to seamlessly switch between the Arduino IDE and its structure and...
Results 1 to 50 of 298
Page 1 of 6 1 2 3 4