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
    1,597

    Probably better to use MAX_FILENAME_LEN which is...

    Probably better to use MAX_FILENAME_LEN which is defined in SD.h
  2. Replies
    3
    Views
    77

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

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

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

    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...
  5. Replies
    6
    Views
    327

    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
  6. Replies
    86
    Views
    8,376

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

    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?
  8. Replies
    1
    Views
    225

    [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
  9. Replies
    4
    Views
    391

    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
  10. Replies
    524
    Views
    72,200

    +1 / upvote / agree

    +1 / upvote / agree
  11. Replies
    4
    Views
    318

    uint16_t not unit16_t

    uint16_t not unit16_t
  12. Replies
    4
    Views
    318

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

    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...
  14. Replies
    6
    Views
    497

    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.


    ...
  15. Replies
    10
    Views
    798

    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/
  16. Replies
    6
    Views
    497

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

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

    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
  18. 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
  19. 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...
  20. 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
  21. 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
  22. Replies
    15
    Views
    913

    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 ) {
    ...
  23. Replies
    2
    Views
    439

    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....
  24. Replies
    12
    Views
    1,050

    You specify it in the constructor ...

    You specify it in the constructor

    Adafruit_MLX90614(uint8_t addr = MLX90614_I2CADDR);
  25. Replies
    15
    Views
    1,490

    Exactly....

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

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

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

    you should use the standard c function strcmp() to compare strings
  29. 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);
  30. 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) {
  31. 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();
    }
  32. Replies
    10
    Views
    786

    You are getting the warning because its...

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

    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
  34. Replies
    9
    Views
    900

    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
  35. https://forum.pjrc.com/threads/61104-Firmware-upda...

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

    https://en.cppreference.com/w/c/string/byte/strtof
  37. Replies
    4
    Views
    540

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

    The .pio directory is in the same directory as your platformio.ini
  38. Replies
    3
    Views
    558

    I believe only the digital pins have interrupt...

    I believe only the digital pins have interrupt capability.
  39. 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...
  40. Replies
    3
    Views
    545

    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.
  41. 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
  42. Replies
    10
    Views
    956

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

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

    Another open source ventilator design

    https://gfxspeak.com/2020/03/26/resuscitates-design-respirator/
  44. 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/
  45. 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
  46. Replies
    29
    Views
    2,832

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

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

    Try removing the comments to actually use the code
  47. 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.
  48. [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...
  49. Replies
    29
    Views
    2,832

    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...
  50. Replies
    29
    Views
    2,832

    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
Results 1 to 50 of 54
Page 1 of 2 1 2