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. 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...
  2. Replies
    24
    Views
    1,659

    Probably better to use MAX_FILENAME_LEN which is...

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

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

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

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

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

    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
  7. Replies
    86
    Views
    8,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.
  8. Replies
    2
    Views
    204

    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?
  9. Replies
    1
    Views
    226

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

    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
  11. Replies
    524
    Views
    72,421

    +1 / upvote / agree

    +1 / upvote / agree
  12. Replies
    4
    Views
    319

    uint16_t not unit16_t

    uint16_t not unit16_t
  13. Replies
    4
    Views
    319

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

    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...
  15. Replies
    6
    Views
    498

    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.


    ...
  16. Replies
    10
    Views
    799

    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/
  17. Replies
    6
    Views
    498

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

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

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

    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 ) {
    ...
  24. Replies
    2
    Views
    442

    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....
  25. Replies
    12
    Views
    1,052

    You specify it in the constructor ...

    You specify it in the constructor

    Adafruit_MLX90614(uint8_t addr = MLX90614_I2CADDR);
  26. Replies
    15
    Views
    1,504

    Exactly....

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

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

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

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

    You are getting the warning because its...

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

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

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

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

    https://en.cppreference.com/w/c/string/byte/strtof
  38. Replies
    4
    Views
    541

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

    The .pio directory is in the same directory as your platformio.ini
  39. Replies
    3
    Views
    561

    I believe only the digital pins have interrupt...

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

    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.
  42. 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
  43. Replies
    10
    Views
    961

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

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

    Another open source ventilator design

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

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

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

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

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