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. Should have rung a lot more bells than that ;)

    Should have rung a lot more bells than that ;)
  2. Do you have a common ground between the two...

    Do you have a common ground between the two boards?
  3. In my experience you shouldn't need to send...

    In my experience you shouldn't need to send anything to "keep the bus alive", you just need to make sure that every message sent is ACK'ed by somebody.
  4. Replies
    5
    Views
    289

    You shouldn't need to install anything....

    You shouldn't need to install anything. OctoWS2811 v1.4 is included with teensyduino

    Edit. Ninja'd by defragster
  5. Replies
    4
    Views
    377

    The argument is used to return the Teensy's...

    The argument is used to return the Teensy's built-in mac address.
  6. Replies
    4
    Views
    299

    If the jumper is not cut then the device at the...

    If the jumper is not cut then the device at the other end of the USB cable (ie your PC) could well be damaged
  7. In your first program, change if...

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

    Maybe ask on a RPi board for support. Nothing to do with teensy
  9. Replies
    24
    Views
    1,203

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

    I know. Sometimes its really difficult to try to help.
  10. Replies
    24
    Views
    1,203

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

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

    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
  12. Replies
    1
    Views
    343

    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...
  13. Replies
    7
    Views
    455

    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
  14. 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"
  15. Replies
    4
    Views
    506

    Does this help you?...

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

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

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

    16:12 - 09:12 is -7 hours which is correct
  19. 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...
  20. Replies
    5
    Views
    623

    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
  21. Replies
    2
    Views
    346

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

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

    by thebigg
    Replies
    3
    Views
    584

    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.
  23. Replies
    4
    Views
    587

    Umm Mark. Its python not C++

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

    by thebigg
    Replies
    7
    Views
    680

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

    by thebigg
    Replies
    7
    Views
    680

    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...
  26. Replies
    4
    Views
    422

    The command line switch should be -mmcu

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

    Undo the platform= override in platformio.ini then run

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

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

    by thebigg
    Replies
    9
    Views
    2,314

    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...
  31. 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...
  32. Replies
    24
    Views
    3,491

    Probably better to use MAX_FILENAME_LEN which is...

    Probably better to use MAX_FILENAME_LEN which is defined in SD.h
  33. Replies
    3
    Views
    487

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

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

    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...
  35. Replies
    7
    Views
    856

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

    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
  37. Replies
    94
    Views
    13,447

    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.
  38. Replies
    5
    Views
    535

    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?
  39. Replies
    1
    Views
    450

    [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
  40. Replies
    4
    Views
    589

    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
  41. Replies
    549
    Views
    117,935

    +1 / upvote / agree

    +1 / upvote / agree
  42. Replies
    4
    Views
    520

    uint16_t not unit16_t

    uint16_t not unit16_t
  43. Replies
    4
    Views
    520

    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?
  44. Replies
    6
    Views
    769

    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...
  45. Replies
    6
    Views
    769

    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.


    ...
  46. Replies
    10
    Views
    1,132

    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/
  47. Replies
    6
    Views
    769

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

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

    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
  49. 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
  50. 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...
Results 1 to 50 of 85
Page 1 of 2 1 2