Jump to content
43oh

allefpablo

Members
  • Content Count

    2
  • Joined

  • Last visited

About allefpablo

  • Rank
    Noob Class

Recent Profile Visitors

181 profile views
  1. Hello, @@Fmilburn! Thanks for you reply. We have this code in file main.cpp in energia folder (\hardware\cc3200\cores\cc3200): int main(void) { setup(); for (; { loop(); if (serialEventRun) serialEventRun(); } } and, we have this code in HardwareSerial.cpp in same folder: void serialEventRun(void) { if (Serial.available()) serialEvent(); if (Serial1.available()) serialEvent1(); }
  2. I'm trying to receive data in serial1 on CC3200 launchpad and send the data to serial0 for serial monitor. In my code, serialEvent1 don't work. Anyone has a solution for this? What is wrong, please? String inputString = ""; // a string to hold incoming data boolean stringComplete = false; // whether the string is complete void setup() { // put your setup code here, to run once: Serial.begin(1200); Serial1.begin(1200); pinMode(GREEN_LED,INPUT); // reserve 200 bytes for the inputString: inputString.reserve(200); } void loop() { // print the string when a newline arrives: i
×
×
  • Create New...