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. In your first program, change if...

    In your first program, change
    if (Serial2.available() > 0) { to
    if (Serial1.available() > 0) {
  2. Maybe ask on a RPi board for support. Nothing to...

    Maybe ask on a RPi board for support. Nothing to do with teensy
  3. Replies
    24
    Views
    798

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

    I know. Sometimes its really difficult to try to help.
  4. Replies
    24
    Views
    798

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

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

    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
  6. Replies
    1
    Views
    272

    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...
  7. Replies
    7
    Views
    321

    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
  8. 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"
  9. Replies
    4
    Views
    360

    Does this help you?...

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

    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*.*
  11. Very nice. But does this have anything to do with...

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

    16:12 - 09:12 is -7 hours which is correct
  13. 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...
  14. Replies
    5
    Views
    501

    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
  15. Replies
    2
    Views
    263

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

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

    by thebigg
    Replies
    3
    Views
    419

    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.
  17. Replies
    4
    Views
    425

    Umm Mark. Its python not C++

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

    by thebigg
    Replies
    7
    Views
    550

    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...
  19. Thread: CAN Bus Pins

    by thebigg
    Replies
    7
    Views
    550

    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...
  20. Replies
    4
    Views
    338

    The command line switch should be -mmcu

    The command line switch should be -mmcu
  21. 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...
  22. Undo the platform= override in platformio.ini...

    Undo the platform= override in platformio.ini then run

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

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

    by thebigg
    Replies
    9
    Views
    2,049

    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...
  25. 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...
  26. Replies
    24
    Views
    3,066

    Probably better to use MAX_FILENAME_LEN which is...

    Probably better to use MAX_FILENAME_LEN which is defined in SD.h
  27. Replies
    3
    Views
    385

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

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

    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...
  29. Replies
    7
    Views
    749

    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...
  30. Replies
    6
    Views
    652

    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
  31. Replies
    94
    Views
    12,043

    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.
  32. Replies
    2
    Views
    295

    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?
  33. Replies
    1
    Views
    384

    [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
  34. Replies
    4
    Views
    515

    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
  35. Replies
    532
    Views
    98,181

    +1 / upvote / agree

    +1 / upvote / agree
  36. Replies
    4
    Views
    439

    uint16_t not unit16_t

    uint16_t not unit16_t
  37. Replies
    4
    Views
    439

    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?
  38. Replies
    6
    Views
    669

    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...
  39. Replies
    6
    Views
    669

    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.


    ...
  40. Replies
    10
    Views
    995

    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/
  41. Replies
    6
    Views
    669

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

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

    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
  43. 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
  44. 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...
  45. 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
  46. 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
  47. Replies
    15
    Views
    1,121

    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 ) {
    ...
  48. Replies
    2
    Views
    739

    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....
  49. Replies
    12
    Views
    1,487

    You specify it in the constructor ...

    You specify it in the constructor

    Adafruit_MLX90614(uint8_t addr = MLX90614_I2CADDR);
  50. Replies
    15
    Views
    2,374

    Exactly....

    Exactly. https://forum.pjrc.com/threads/23681-Many-axis-joystick?p=258030&viewfull=1#post258030
Results 1 to 50 of 79
Page 1 of 2 1 2