Skip to content

Commit

Permalink
Reduce the size of initial help text.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoll committed Nov 28, 2015
1 parent 13e6b00 commit c172bbd
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions source/microbit/help.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,40 +33,27 @@
STATIC const char *help_text =
"Welcome to MicroPython on the micro:bit!\n"
"\n"
"Type 'import microbit', press return and try these commands:\n"
" microbit.display.scroll('Hello')\n"
" microbit.running_time()\n"
" microbit.sleep(1000)\n"
" microbit.button_a.is_pressed()\n"
"Try these commands:\n"
" display.scroll('Hello')\n"
" running_time()\n"
" sleep(1000)\n"
" button_a.is_pressed()\n"
"What do these commands do? Can you improve them? HINT: use the up and down\n"
"arrow keys to get your command history. Press the TAB key to auto-complete\n"
"unfinished words (so 'mi' becomes 'microbit' after you press TAB). These\n"
"unfinished words (so 'di' becomes 'display' after you press TAB). These\n"
"tricks save a lot of typing and look cool!\n"
"\n"
"Explore:\n"
"Type 'help(something)' to find out about it. Type 'dir(something)' to see what\n"
"it can do. For goodness sake, don't type 'import this'.\n"
"\n"
"Stuff to explore:\n"
" microbit.accelerometer -- detect the device's position (orientation)\n"
" microbit.button_a.is_pressed() -- is button A pressed? (True or False)\n"
" microbit.button_b.is_pressed() -- is button B pressed? (True or False)\n"
" microbit.compass -- detect the device's heading\n"
" microbit.display -- display things (pixels, characters, words)\n"
" microbit.Image -- make pictures for the display\n"
" microbit.pin0 -- control the gold input/output (IO) pin0\n"
" microbit.panic() -- enter panic mode (requires a restart)\n"
" microbit.random(n) -- get a random number between 0 and n-1\n"
" microbit.reset() -- reset the device\n"
" microbit.sleep(n) -- wait for n milliseconds (1 second = 1000)\n"
" microbit.running_time() -- get the number of milliseconds since reset\n"
"it can do. Type 'dir()' to see what stuff is available. For goodness sake,\n"
"don't type 'import this'.\n"
"\n"
"Control commands:\n"
" CTRL-C -- stop a running program\n"
" CTRL-D -- on a blank line, do a soft reset of the micro:bit\n"
"\n"
"Available modules: array, collections, microbit, micropython, gc, struct, sys,\n"
"this\n"
"Available modules: antigravity, array, collections, gc, love, math,\n"
"micropython, music, struct, sys, this\n"
"\n"
"For more information about Python, visit: http://python.org/\n"
"To find out about MicroPython, visit: http://micropython.org/\n"
Expand Down

0 comments on commit c172bbd

Please sign in to comment.