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

Search:

Type: Posts; User: thebigg

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    23
    Views
    315

    I know. Sometimes its really difficult to try to...

    I know. Sometimes its really difficult to try to help.
  2. Replies
    23
    Views
    315

    It's the identical code as #18, not what was...

    It's the identical code as #18, not what was asked for
  3. Replies
    5
    Views
    171

    According to...

    According to https://docs.platformio.org/en/latest/platforms/teensy.html#usb-features I think you should try defining
    -D USB_MIDI_SERIAL instead
  4. Replies
    1
    Views
    169

    According to...

    According to https://www.pjrc.com/store/teensy41.html

    "The analog input range is fixed at 0 to 3.3V. On Teensy 4.1, the analogReference() function has no effect. The analog pins are not 5V...
  5. Replies
    7
    Views
    195

    Did you try a different SD card yet? Just to...

    Did you try a different SD card yet? Just to confirm that the SD card itself is not fubar
  6. Looks like you are truncating...

    Looks like you are truncating "/MusicBee/Playlists/Test 1.m3u", yet you seem to be displaying the contents of "/MusicBee/Playlists/Test 3.m3u"
  7. Replies
    4
    Views
    241

    Does this help you?...

    Does this help you? https://forum.pjrc.com/threads/49802-STL-and-undefined-reference-to-std-__throw_bad_alloc()
  8. Replies
    5
    Views
    277

    On my machine (Linux) they are in...

    On my machine (Linux) they are in teensy/cores/teensy3/ or teensy/cores/teensy4/ depending on board you are using. Look at HardwareSerial*.*
  9. Very nice. But does this have anything to do with...

    Very nice. But does this have anything to do with teensy?
  10. 16:12 - 09:12 is -7 hours which is correct

    16:12 - 09:12 is -7 hours which is correct
  11. Yes. Linux expects filesystem timestamps to be in...

    Yes. Linux expects filesystem timestamps to be in UTC. Which makes perfect sense if the filesystem is shared and viewed on machines with different timezones set -- the create/access/modify timestamps...
  12. Replies
    5
    Views
    389

    try calling size_t write(const void *buf, size_t...

    try calling size_t write(const void *buf, size_t size) instead of printing each character
  13. Replies
    2
    Views
    196

    look in pins_arduino.h for the definitions of the...

    look in pins_arduino.h for the definitions of the macros
  14. Thread: TimeLib now()

    by thebigg
    Replies
    3
    Views
    276

    After expanding the macro, the problem line is ...

    After expanding the macro, the problem line is

    const uint8_t ((time_t)(7UL)) = 7;
    which is obviously bogus. I agree that the error message does not make sense.
  15. Replies
    4
    Views
    298

    Umm Mark. Its python not C++

    Umm Mark. Its python not C++
  16. Thread: CAN Bus Pins

    by thebigg
    Replies
    7
    Views
    435

    I actually have a couple of the waveshare...

    I actually have a couple of the waveshare breakouts still in sealed packets. If you are interested and the nz in your nick means you are located across the Tasman from me, send me a pm with your...
  17. Thread: CAN Bus Pins

    by thebigg
    Replies
    7
    Views
    435

    The problem with that MCP2515 breakout you have...

    The problem with that MCP2515 breakout you have is that it is designed for 5V operation which may fry your teensy. Some of the boards claim to have level shifters but I personally would not take the...
  18. Replies
    4
    Views
    292

    The command line switch should be -mmcu

    The command line switch should be -mmcu
  19. If you are using the platformio plugin in vscode...

    If you are using the platformio plugin in vscode and you have configured it to show PIO Home at startup, then you can check for updates by selecting Platforms / Updates which will update it on...
  20. Undo the platform= override in platformio.ini...

    Undo the platform= override in platformio.ini then run

    pio platform update
  21. Actually the platformio framework-arduinoteensy...

    Actually the platformio framework-arduinoteensy was updated to 1.154.0 yesterday
  22. Thread: c++17

    by thebigg
    Replies
    9
    Views
    1,903

    A much cleaner way is to include this the [env]...

    A much cleaner way is to include this the [env] section of your platformio.ini.


    build_unflags= -larm_cortexM4lf_math

    or -larm_cortexM7lfsp_math as the case may be depending on which cpu you...
  23. There is a preprocessor symbol containing the...

    There is a preprocessor symbol containing the version number (currently 154)

    TEENSYDUINO



    #if defined(__MKL26Z64__)
    // "Teensy LC [MKL26Z64]"
    #elif defined(__MK20DX256__)
    // "Teensy 3.2...
  24. Replies
    24
    Views
    2,790

    Probably better to use MAX_FILENAME_LEN which is...

    Probably better to use MAX_FILENAME_LEN which is defined in SD.h
  25. Replies
    3
    Views
    319

    https://www.arduino.cc/reference/en/language/funct...

    https://www.arduino.cc/reference/en/language/functions/math/map/
  26. Replies
    6
    Views
    519

    Check this: // Note: If settings_type is...

    Check this:

    // Note: If settings_type is TEMPERATURE_MAX_ACCURACY, it will change
    // the ADC settings to be optimal for reading temperature.
    // If settings_type is...
  27. Replies
    7
    Views
    664

    You are going to have to reverse engineer the...

    You are going to have to reverse engineer the CANBus on the car, unless you have access to documentation. Firstly you will need to tap into the bus that carries the messages from the steering wheel...
  28. Replies
    6
    Views
    580

    If your RTC has the current date, then you can...

    If your RTC has the current date, then you can easily translate this description into code to get the current moon phase
    https://en.wikipedia.org/wiki/Lunar_phase#Calculating_phase
  29. Replies
    94
    Views
    10,979

    C/C++ has zero validation of array indexes (or...

    C/C++ has zero validation of array indexes (or indeed pointers in general). That is what makes the language so fast and versatile compared to other languages like java and python that do.
  30. Replies
    2
    Views
    252

    Does the amount of data you need to save not fit...

    Does the amount of data you need to save not fit in the (emulated) EEPROM?
  31. Replies
    1
    Views
    335

    [The constructor is Adafruit_BNO055(int32_t...

    [The constructor is

    Adafruit_BNO055(int32_t sensorID = -1, uint8_t address = BNO055_ADDRESS_A,
    TwoWire *theWire = &Wire);

    You need to specify &Wire1 for the third argument
  32. Replies
    4
    Views
    478

    For PlatformIO, all you need to do is define the...

    For PlatformIO, all you need to do is define the desired USB Features in a build flag as described in the the documentation.
    https://docs.platformio.org/en/latest/platforms/teensy.html#usb-features
  33. Replies
    531
    Views
    89,852

    +1 / upvote / agree

    +1 / upvote / agree
  34. Replies
    4
    Views
    382

    uint16_t not unit16_t

    uint16_t not unit16_t
  35. Replies
    4
    Views
    382

    On the teensy family, an int is 32 bits. Did you...

    On the teensy family, an int is 32 bits. Did you try changing the declaration of codes to uint16_t to match the hardware?
  36. Replies
    6
    Views
    615

    Also note that the Arduino timelib has no concept...

    Also note that the Arduino timelib has no concept of timezone so you need to make allowances in your code. As a rule I ALWAYS set the RTC to UTC time and apply the appropriate adjustment for timezone...
  37. Replies
    6
    Views
    615

    Here is a simple piece of code to set the RTC to...

    Here is a simple piece of code to set the RTC to 05:30:00 on 05 Mar 2021. Provided the RTC battery is connected, that time will be maintained even while the teensy is not powered.


    ...
  38. Replies
    10
    Views
    921

    Instead of toggling the state, you could actually...

    Instead of toggling the state, you could actually read the state of the input pin -- then your state would never be out of synch with the switch/
  39. Replies
    6
    Views
    615

    You need to call Teensy3Clock.set() somewhere to...

    You need to call Teensy3Clock.set() somewhere to update the RTC
  40. Replies
    8
    Views
    500

    You seem to have missed the significance of the...

    You seem to have missed the significance of the final digit. The 2 in SDA2 means that it refers to Wire2 only. The 0 in SDA0 means it refers to Wire
  41. Either the OP has not installed the teensy...

    Either the OP has not installed the teensy framework, or the board = directive in platformio.ini is missing or wrong
  42. The files at that location are identical to the...

    The files at that location are identical to the files at the link that Paul posted.

    The only place that contains the string
    "This library only supports boards with an AVR, SAM or SAMD...
  43. On my machine with PlatformIO, the teensy...

    On my machine with PlatformIO, the teensy specific Servo library is located at ~/.platformio/packages/framework-arduinoteensy/libraries/Servo/Servo.h
  44. val is a 64 bit int, you need to tell printf()...

    val is a 64 bit int, you need to tell printf() the size of the argument using %lld
    m is a 32 bit int you need to tell printf() the size of the argument using %ld
  45. Replies
    15
    Views
    1,074

    The errors are a result of you defining loop()...

    The errors are a result of you defining loop() within setup()


    void setup() {
    pinMode(ledPin, OUTPUT);
    int x;

    void loop() {
    for (x = 1; x < 4; x = x + 1 ) {
    ...
  46. Replies
    2
    Views
    648

    Did you try something like this yet? for...

    Did you try something like this yet?


    for ( uint8_t i = 0; i < 8; i++ ) {
    char buffer[3];
    sprintf(buffer, "%02X", msg.buf[i]);
    Serial.print(buffer);
    }

    Just FYI....
  47. Replies
    12
    Views
    1,340

    You specify it in the constructor ...

    You specify it in the constructor

    Adafruit_MLX90614(uint8_t addr = MLX90614_I2CADDR);
  48. Replies
    15
    Views
    2,152

    Exactly....

    Exactly. https://forum.pjrc.com/threads/23681-Many-axis-joystick?p=258030&viewfull=1#post258030
  49. Replies
    206
    Views
    287,820

    See this link...

    See this link for a list of all the Teensy specific entries you can put in your platformio.ini to configure the build output
  50. You could try using this library...

    You could try using this library
    https://github.com/sstaub/TeensyID
Results 1 to 50 of 77
Page 1 of 2 1 2