Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Unable to read console with Yun (Read 285 times)
GKinAZ
Junior Member
**
Offline


Posts: 37
Location: Arizona
Joined: Jan 29th, 2014
Unable to read console with Yun
Nov 11th, 2015 at 5:38pm
Print Post  
Just now getting back into my Yuns. On my Windows 10 PC, installed Atmel 7 and have latest VM (1.1511.11). Using Arduino 1.6.4. Finding that I cannot read console. Although, using the serial monitor window in the Arduino IDE, console is read and outputted to both Arduino and Atmel/VM IDEs. The sketch:

Code (C++)
Select All
#include <Bridge.h>
#include <Console.h>

void setup()
{
	Bridge.begin();
	Console.begin();
	while(!Console);
	Console.println("Console started");
	/* add setup code here */
}

void loop()
{
	if(Console.available() > 0){
		Console.println("read character");
		char c = Console.read();
		Console.println(c);
	}
	/* add main program code here */

}
 



Also, starting with new project, all the bridge code is not recognized (wavy red underlines), but OK when open existing project.

What am I missing to be able to read the console?
  
Back to top
 
IP Logged
 
GKinAZ
Junior Member
**
Offline


Posts: 37
Location: Arizona
Joined: Jan 29th, 2014
Re: Unable to read console with Yun
Reply #1 - Nov 11th, 2015 at 5:41pm
Print Post  
This Topic was moved here from Arduino for Atmel Studio [move by] GKinAZ.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint