Announcement

Collapse
No announcement yet.

uLCD-70DT and teensy 3.6

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • uLCD-70DT and teensy 3.6

    Has anyone gotten a uLCD-anything to work with a teensy 3.5/3.6? The simple-minded sketch below runs fine (LED blinks, etc.), BUT if I remove the //, the run fails (no LED, no messages, etc). There are no compilation, link or load errors in either case.
    -----------------------------------------------------------------------------------------------------
    #include <Arduino.h>
    #include <Diablo_Const4D.h>
    #include <Diablo_Serial_4DLib.h>

    #define DisplaySerial Serial3

    //Diablo_Serial_4DLib Display(&DisplaySerial);

    void setup() {
    pinMode(13,OUTPUT);

    Serial.begin(115200);
    delay(1000);
    Serial.println("Serial Monitor started");
    }

    boolean state=true;
    int i = 0;
    void loop() {
    Serial.println(i++);
    digitalWrite(13,(state ? HIGH : LOW));
    state = !state;
    delay(500);
    }

  • #2
    This problem solved by commenting out:
    _virtualPort->flush(); (there's only one occurrence)
    in:
    Diablo_Serial_4DLib.cpp

    uLCD-70DT (serial) now works just fine with teensy 3.6!

    Comment


    • #3
      flush is part of the stream class in arduino, however, it isnt used so taking it out wont affect your code

      Comment

      Working...
      X