help.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * This file is part of the MicroPython project, http://micropython.org/
  3. *
  4. * The MIT License (MIT)
  5. *
  6. * Copyright (c) 2013, 2014 Damien P. George
  7. * Copyright (c) 2016 - 2018 Glenn Ruben Bakke
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a copy
  10. * of this software and associated documentation files (the "Software"), to deal
  11. * in the Software without restriction, including without limitation the rights
  12. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. * copies of the Software, and to permit persons to whom the Software is
  14. * furnished to do so, subject to the following conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be included in
  17. * all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  25. * THE SOFTWARE.
  26. */
  27. #include "py/builtin.h"
  28. #if BLUETOOTH_SD
  29. #include "help_sd.h"
  30. #endif
  31. const char nrf5_help_text[] =
  32. "Welcome to MicroPython!\n"
  33. "\n"
  34. "For online help please visit http://micropython.org/help/.\n"
  35. "\n"
  36. "Quick overview of commands for the board:\n"
  37. #if MICROPY_HW_HAS_LED
  38. " board.LED(n) -- create an LED object for LED n (n=" HELP_TEXT_BOARD_LED ")\n"
  39. "\n"
  40. #endif
  41. #if BLUETOOTH_SD
  42. HELP_TEXT_SD
  43. #endif
  44. "Control commands:\n"
  45. " CTRL-A -- on a blank line, enter raw REPL mode\n"
  46. " CTRL-B -- on a blank line, enter normal REPL mode\n"
  47. " CTRL-D -- on a blank line, do a soft reset of the board\n"
  48. " CTRL-E -- on a blank line, enter paste mode\n"
  49. "\n"
  50. "For further help on a specific object, type help(obj)\n"
  51. ;