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
    6
    Views
    150

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

    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...
  3. Replies
    6
    Views
    198

    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
  4. Replies
    86
    Views
    7,454

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

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

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

    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
  8. Replies
    524
    Views
    68,447

    +1 / upvote / agree

    +1 / upvote / agree
  9. Replies
    4
    Views
    302

    uint16_t not unit16_t

    uint16_t not unit16_t
  10. Replies
    4
    Views
    302

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

    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...
  12. Replies
    6
    Views
    449

    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.


    ...
  13. Replies
    10
    Views
    747

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

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

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

    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
  16. 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
  17. 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...
  18. 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
  19. 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
  20. Replies
    15
    Views
    846

    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 ) {
    ...
  21. Replies
    2
    Views
    387

    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....
  22. Replies
    12
    Views
    949

    You specify it in the constructor ...

    You specify it in the constructor

    Adafruit_MLX90614(uint8_t addr = MLX90614_I2CADDR);
  23. Replies
    15
    Views
    1,314

    Exactly....

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

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

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

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

    You are getting the warning because its...

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

    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
  32. Replies
    9
    Views
    836

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

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

    https://en.cppreference.com/w/c/string/byte/strtof
  35. Replies
    4
    Views
    509

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

    The .pio directory is in the same directory as your platformio.ini
  36. Replies
    3
    Views
    523

    I believe only the digital pins have interrupt...

    I believe only the digital pins have interrupt capability.
  37. 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...
  38. Replies
    3
    Views
    527

    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.
  39. 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
  40. Replies
    10
    Views
    904

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

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

    Another open source ventilator design

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

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

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

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

    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...
  48. Replies
    29
    Views
    2,713

    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
  49. https://www.pjrc.com/teensy/td_libs_EEPROM.html

    https://www.pjrc.com/teensy/td_libs_EEPROM.html
  50. Replies
    6
    Views
    877

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