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
    15
    Views
    259

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

    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....
  3. Replies
    12
    Views
    375

    You specify it in the constructor ...

    You specify it in the constructor

    Adafruit_MLX90614(uint8_t addr = MLX90614_I2CADDR);
  4. Replies
    15
    Views
    543

    Exactly....

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

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

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

    you should use the standard c function strcmp() to compare strings
  8. 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);
  9. 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) {
  10. 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();
    }
  11. Replies
    10
    Views
    413

    You are getting the warning because its...

    You are getting the warning because its converting 5636u to int16_t
  12. Replies
    13
    Views
    3,662

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

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

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

    https://en.cppreference.com/w/c/string/byte/strtof
  16. Replies
    4
    Views
    369

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

    The .pio directory is in the same directory as your platformio.ini
  17. Replies
    3
    Views
    324

    I believe only the digital pins have interrupt...

    I believe only the digital pins have interrupt capability.
  18. 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...
  19. Replies
    3
    Views
    379

    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.
  20. 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
  21. Replies
    10
    Views
    636

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

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

    Another open source ventilator design

    https://gfxspeak.com/2020/03/26/resuscitates-design-respirator/
  23. 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/
  24. 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
  25. Replies
    29
    Views
    2,043

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

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

    Try removing the comments to actually use the code
  26. 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.
  27. [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...
  28. Replies
    29
    Views
    2,043

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

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

    https://www.pjrc.com/teensy/td_libs_EEPROM.html
  31. Replies
    6
    Views
    570

    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...
  32. Replies
    106
    Views
    166,666

    Hi Tony I believe core-electronics source...

    Hi Tony

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

    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 33 of 33