mirror of
https://github.com/newdigate/teensy-x86-stubs.git
synced 2026-07-04 14:46:42 +00:00
add launch.json for basic test
This commit is contained in:
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "C++ Launch",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/cmake-build-debug/test/first/basic",
|
||||
"args": [],
|
||||
"environment": [{ "name": "config", "value": "Debug" }],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"externalConsole" :true,
|
||||
"osx": {
|
||||
"MIMode": "lldb"
|
||||
},
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
@@ -66,7 +66,7 @@ private:
|
||||
termios t_saved;
|
||||
#else
|
||||
unsigned long _consoleMode;
|
||||
#endif _MSC_VER
|
||||
#endif
|
||||
|
||||
std::queue<char> input;
|
||||
};
|
||||
|
||||
@@ -4,8 +4,11 @@ int main() {
|
||||
initialize_mock_arduino();
|
||||
delay(100);
|
||||
char s[10] = "123123\0";
|
||||
Serial.printf("Hello %s", s);
|
||||
Serial.printf("Hello %s\n", s);
|
||||
int m = millis();
|
||||
Serial.printf("Hello %d", m);
|
||||
Serial.printf("Please type a sentance.... %d\n", m);
|
||||
|
||||
String s2 = Serial.readStringUntil('\n');
|
||||
Serial.printf("Thank you for your response '%s' \n", s2.c_str());
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user