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

Search:

Type: Posts; User: thebigg

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    73

    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?
  2. Replies
    1
    Views
    116

    [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
  3. Replies
    4
    Views
    267

    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
  4. Replies
    490
    Views
    55,991

    +1 / upvote / agree

    +1 / upvote / agree
  5. Replies
    4
    Views
    209

    uint16_t not unit16_t

    uint16_t not unit16_t
  6. Replies
    4
    Views
    209

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

    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...
  8. Replies
    6
    Views
    346

    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.


    ...
  9. Replies
    10
    Views
    630

    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/
  10. Replies
    6
    Views
    346

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

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

    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
  12. 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
  13. 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...
  14. 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
  15. 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
  16. Replies
    15
    Views
    705

    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 ) {
    ...
  17. Replies
    2
    Views
    291

    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....
  18. Replies
    12
    Views
    757

    You specify it in the constructor ...

    You specify it in the constructor

    Adafruit_MLX90614(uint8_t addr = MLX90614_I2CADDR);
  19. Replies
    15
    Views
    1,020

    Exactly....

    Exactly. https://forum.pjrc.com/threads/23681-Many-axis-joystick?p=258030&viewfull=1#post258030
  20. Replies
    200
    Views
    219,508

    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
  21. You could try using this library...

    You could try using this library
    https://github.com/sstaub/TeensyID
  22. you should use the standard c function strcmp()...

    you should use the standard c function strcmp() to compare strings
  23. Can't say too much about the typing without...

    Can't say too much about the typing without seeing the decalarion of N64_status

    The "normal" way to use map is

    map(axis_x, axis_x_min, axis_x_max, -127, 127);
  24. Call these methods on Serial2 ...

    Call these methods on Serial2


    virtual void setRX(uint8_t pin) {
    virtual void setTX(uint8_t pin, bool opendrain=false) {
  25. What happens if you add this to your source file...

    What happens if you add this to your source file


    time_t getTeensy3Time() {
    return Teensy3Clock.get();
    }
  26. Replies
    10
    Views
    576

    You are getting the warning because its...

    You are getting the warning because its converting 5636u to int16_t
  27. Replies
    13
    Views
    4,169

    I'm using linux and on my machine the file is...

    I'm using linux and on my machine the file is located at

    ~/.platformio/packages/framework-arduinoteensy/cores/teensy3/mk20dx128.c
  28. Replies
    9
    Views
    707

    On my machine with the same versions as you, it...

    On my machine with the same versions as you, it is installed here

    /usr/share/arduino/hardware/teensy/avr/libraries/Audio/Audio.h
  29. https://forum.pjrc.com/threads/61104-Firmware-upda...

    https://forum.pjrc.com/threads/61104-Firmware-update-without-button?p=247615&viewfull=1#post247615
  30. https://en.cppreference.com/w/c/string/byte/strtof

    https://en.cppreference.com/w/c/string/byte/strtof
  31. Replies
    4
    Views
    433

    The .pio directory is in the same directory as...

    The .pio directory is in the same directory as your platformio.ini
  32. Replies
    3
    Views
    449

    I believe only the digital pins have interrupt...

    I believe only the digital pins have interrupt capability.
  33. for (int i = 1; i < 10; i++) There is no memory...

    for (int i = 1; i < 10; i++)
    There is no memory allocation (from the heap) in the for loop. The stack pointer is just decremented by 4. There is no overhead or possibility of a leak.

    Depending...
  34. Replies
    3
    Views
    460

    I'm using a CR1220 to power the RTC on a few...

    I'm using a CR1220 to power the RTC on a few teensy 3.5s. I haven't had to replace the battery yet for about 15 months.
  35. Try this instead #define PACKED_STRUCT ...

    Try this instead

    #define PACKED_STRUCT struct __attribute__((packed))
    PACKED_STRUCT Test {
    uint16_t Data1;
    uint16_t Data2;
    uint16_t Data3;
    } ;

    Test MyData
  36. Replies
    10
    Views
    780

    You can track the amount of send buffer available...

    You can track the amount of send buffer available by calling int availableForWrite(void)
  37. Another open source ventilator design ...

    Another open source ventilator design

    https://gfxspeak.com/2020/03/26/resuscitates-design-respirator/
  38. As far as a ventilator goes, something like this...

    As far as a ventilator goes, something like this perhaps?

    https://techcrunch.com/2020/03/19/open-source-project-spins-up-3d-printed-ventilator-validation-prototype-in-just-one-week/
  39. Instead of reading/writing a single byte at a...

    Instead of reading/writing a single byte at a time, try reading/writing a 512 byte block
  40. Replies
    29
    Views
    2,472

    /* SPI.setCS(10); SPI.setMOSI(11); ...

    /*
    SPI.setCS(10);
    SPI.setMOSI(11);
    SPI.setSCK(13);*/

    Try removing the comments to actually use the code
  41. Hi Jeff The bike is 2014 Triumph Speed Triple....

    Hi Jeff

    The bike is 2014 Triumph Speed Triple. Uses the same CANbus enabled ECU as KTM, Aprilia, Ducati, Moto Guzzi.

    The ultrasonic sensors I am using need at least 60ms between pulses.
  42. [queued] SchmickBike: Teensy based motorcycle instruments and telemetry

    SchmickBike is a Teensy based platform for motorcycle instruments and telemetry.

    Controller.
    3D printed enclosure permanently installed under the seat of the bike. Houses a custom PCB with Teensy...
  43. Replies
    29
    Views
    2,472

    Open TLC5947.h in your favourite editor and have...

    Open TLC5947.h in your favourite editor and have a look...


    static uint8_t _rgb_order[][LEDS_PER_CHIP][COLOR_CHANNEL_COUNT];
    static uint16_t...
  44. Replies
    29
    Views
    2,472

    static const int _tlc_count; // The type of...

    static const int _tlc_count; //

    The type of _tlc_count in the header file is int, not uint8_t
  45. https://www.pjrc.com/teensy/td_libs_EEPROM.html

    https://www.pjrc.com/teensy/td_libs_EEPROM.html
  46. Replies
    6
    Views
    736

    In my experience gcc does a particularly poor job...

    In my experience gcc does a particularly poor job of handling heap fragmentation. I would avoid new/delete (as well as malloc()/free()) as much as possible unless you are absolutely certain that you...
  47. Replies
    106
    Views
    171,915

    Hi Tony I believe core-electronics source...

    Hi Tony

    I believe core-electronics source their teenys from adafruit
  48. Replies
    6
    Views
    1,358

    the meaning of PROGMEM is different in 4.0 vs 3.x

    the meaning of PROGMEM is different in 4.0 vs 3.x
Results 1 to 48 of 48