Help communicating between Teensy4.0 and C++ program

Status
Not open for further replies.

ShantalW

Member
Hi, I'm quite new to Teensy, but am trying to switch over from Arduino. I have a WS2812 light strip I am trying to control in a program via a Teensy 4.0 (the teensy will end up controlling more, but this is the point I am at), and if I am using the serial monitor through teensyduino my commands work great, however, when I try to link the Teensy to my program it connects, but only one message makes it through/does anything, then it stops receiving/sending messages, but doesn't exactly disconnect. I feel like I'm missing a simple step somewhere. I've attached my code, it's pretty basic, might have some bugs still in it, but is the start that should eventually get what I want done (the .ino is the teensy code, the rest is my PC app). Any help would be greatly appreciated!

Thanks!
 

Attachments

  • TeensyMessageHandler.cpp
    5 KB · Views: 38
  • TeensyMessageHandler.h
    948 bytes · Views: 36
  • TeensySerialPort.cpp
    2.7 KB · Views: 40
  • TeensySerialPort.h
    479 bytes · Views: 34
  • TeensyTalk.cpp
    849 bytes · Views: 40
  • TeensyTalkTest.ino
    6.3 KB · Views: 33
Status
Not open for further replies.
Back
Top