Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6827f9fc
Commit
6827f9fc
authored
Apr 07, 2014
by
Damien George
Browse files
Add uPy welcome message to UNIX and Windows ports; update Teensy port.
Partly addresses issue #154.
parent
6c6f9d67
Changes
3
Hide whitespace changes
Inline
Side-by-side
teensy/main.c
View file @
6827f9fc
...
...
@@ -19,6 +19,7 @@
#include
"usb.h"
#include
"gc.h"
#include
"led.h"
#include
"build/py/py-version.h"
#include
"Arduino.h"
...
...
@@ -380,7 +381,7 @@ bool do_file(const char *filename) {
}
void
do_repl
(
void
)
{
stdout_tx_str
(
"Micro Python
for
Teensy 3.1
\r
\n
"
);
stdout_tx_str
(
"Micro Python
build "
MICROPY_GIT_HASH
" on "
MICROPY_BUILD_DATE
";
Teensy 3.1
version
\n
"
);
stdout_tx_str
(
"Type
\"
help()
\"
for more information.
\r\n
"
);
vstr_t
line
;
...
...
unix/main.c
View file @
6827f9fc
...
...
@@ -22,6 +22,7 @@
#include
"runtime.h"
#include
"repl.h"
#include
"gc.h"
#include
"build/py/py-version.h"
#if MICROPY_USE_READLINE
#include
<readline/readline.h>
...
...
@@ -137,6 +138,9 @@ STATIC char *prompt(char *p) {
}
STATIC
void
do_repl
(
void
)
{
printf
(
"Micro Python build "
MICROPY_GIT_HASH
" on "
MICROPY_BUILD_DATE
"; UNIX version
\n
"
);
printf
(
"Type
\"
help()
\"
for more information.
\n
"
);
for
(;;)
{
char
*
line
=
prompt
(
">>> "
);
if
(
line
==
NULL
)
{
...
...
windows/main.c
View file @
6827f9fc
...
...
@@ -16,6 +16,7 @@
#include
"runtime0.h"
#include
"runtime.h"
#include
"repl.h"
#include
"build/py/py-version.h"
#if MICROPY_USE_READLINE
#include
<readline/readline.h>
...
...
@@ -117,6 +118,9 @@ static char *prompt(char *p) {
}
static
void
do_repl
(
void
)
{
printf
(
"Micro Python build "
MICROPY_GIT_HASH
" on "
MICROPY_BUILD_DATE
"; Windows version
\n
"
);
printf
(
"Type
\"
help()
\"
for more information.
\n
"
);
for
(;;)
{
char
*
line
=
prompt
(
">>> "
);
if
(
line
==
NULL
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment