microbitconstimage.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * This file is part of the Micro Python project, http://micropython.org/
  3. *
  4. * The MIT License (MIT)
  5. *
  6. * Copyright (c) 2015 Damien P. George
  7. *
  8. * Permission is hereby granted, free of charge, to any person obtaining a copy
  9. * of this software and associated documentation files (the "Software"), to deal
  10. * in the Software without restriction, including without limitation the rights
  11. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. * copies of the Software, and to permit persons to whom the Software is
  13. * furnished to do so, subject to the following conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included in
  16. * all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. * THE SOFTWARE.
  25. */
  26. #ifndef __MICROPY_INCLUDED_MICROBIT_CONSTIMAGE_H__
  27. #define __MICROPY_INCLUDED_MICROBIT_CONSTIMAGE_H__
  28. typedef struct _image_tuple_12 {
  29. mp_obj_base_t base;
  30. size_t len;
  31. mp_rom_obj_t items[12];
  32. } image_tuple_12_t;
  33. typedef struct _image_tuple_8 {
  34. mp_obj_base_t base;
  35. size_t len;
  36. mp_rom_obj_t items[8];
  37. } image_tuple_8_t;
  38. extern const image_tuple_12_t microbit_const_image_all_clocks_tuple_obj;
  39. extern const image_tuple_8_t microbit_const_image_all_arrows_tuple_obj;
  40. extern const mp_obj_type_t microbit_const_image_type;
  41. extern const struct _monochrome_5by5_t microbit_const_image_heart_obj;
  42. extern const struct _monochrome_5by5_t microbit_const_image_heart_small_obj;
  43. extern const struct _monochrome_5by5_t microbit_const_image_happy_obj;
  44. extern const struct _monochrome_5by5_t microbit_const_image_smile_obj;
  45. extern const struct _monochrome_5by5_t microbit_const_image_sad_obj;
  46. extern const struct _monochrome_5by5_t microbit_const_image_confused_obj;
  47. extern const struct _monochrome_5by5_t microbit_const_image_angry_obj;
  48. extern const struct _monochrome_5by5_t microbit_const_image_asleep_obj;
  49. extern const struct _monochrome_5by5_t microbit_const_image_surprised_obj;
  50. extern const struct _monochrome_5by5_t microbit_const_image_silly_obj;
  51. extern const struct _monochrome_5by5_t microbit_const_image_fabulous_obj;
  52. extern const struct _monochrome_5by5_t microbit_const_image_meh_obj;
  53. extern const struct _monochrome_5by5_t microbit_const_image_yes_obj;
  54. extern const struct _monochrome_5by5_t microbit_const_image_no_obj;
  55. extern const struct _monochrome_5by5_t microbit_const_image_clock12_obj;
  56. extern const struct _monochrome_5by5_t microbit_const_image_clock1_obj;
  57. extern const struct _monochrome_5by5_t microbit_const_image_clock2_obj;
  58. extern const struct _monochrome_5by5_t microbit_const_image_clock3_obj;
  59. extern const struct _monochrome_5by5_t microbit_const_image_clock4_obj;
  60. extern const struct _monochrome_5by5_t microbit_const_image_clock5_obj;
  61. extern const struct _monochrome_5by5_t microbit_const_image_clock6_obj;
  62. extern const struct _monochrome_5by5_t microbit_const_image_clock7_obj;
  63. extern const struct _monochrome_5by5_t microbit_const_image_clock8_obj;
  64. extern const struct _monochrome_5by5_t microbit_const_image_clock9_obj;
  65. extern const struct _monochrome_5by5_t microbit_const_image_clock10_obj;
  66. extern const struct _monochrome_5by5_t microbit_const_image_clock11_obj;
  67. extern const struct _monochrome_5by5_t microbit_const_image_arrow_n_obj;
  68. extern const struct _monochrome_5by5_t microbit_const_image_arrow_ne_obj;
  69. extern const struct _monochrome_5by5_t microbit_const_image_arrow_e_obj;
  70. extern const struct _monochrome_5by5_t microbit_const_image_arrow_se_obj;
  71. extern const struct _monochrome_5by5_t microbit_const_image_arrow_s_obj;
  72. extern const struct _monochrome_5by5_t microbit_const_image_arrow_sw_obj;
  73. extern const struct _monochrome_5by5_t microbit_const_image_arrow_w_obj;
  74. extern const struct _monochrome_5by5_t microbit_const_image_arrow_nw_obj;
  75. extern const struct _monochrome_5by5_t microbit_const_image_triangle_obj;
  76. extern const struct _monochrome_5by5_t microbit_const_image_triangle_left_obj;
  77. extern const struct _monochrome_5by5_t microbit_const_image_chessboard_obj;
  78. extern const struct _monochrome_5by5_t microbit_const_image_diamond_obj;
  79. extern const struct _monochrome_5by5_t microbit_const_image_diamond_small_obj;
  80. extern const struct _monochrome_5by5_t microbit_const_image_square_obj;
  81. extern const struct _monochrome_5by5_t microbit_const_image_square_small_obj;
  82. extern const struct _monochrome_5by5_t microbit_const_image_rabbit;
  83. extern const struct _monochrome_5by5_t microbit_const_image_cow;
  84. extern const struct _monochrome_5by5_t microbit_const_image_music_crotchet_obj;
  85. extern const struct _monochrome_5by5_t microbit_const_image_music_quaver_obj;
  86. extern const struct _monochrome_5by5_t microbit_const_image_music_quavers_obj;
  87. extern const struct _monochrome_5by5_t microbit_const_image_pitchfork_obj;
  88. extern const struct _monochrome_5by5_t microbit_const_image_xmas_obj;
  89. extern const struct _monochrome_5by5_t microbit_const_image_pacman_obj;
  90. extern const struct _monochrome_5by5_t microbit_const_image_target_obj;
  91. extern const struct _monochrome_5by5_t microbit_const_image_tshirt_obj;
  92. extern const struct _monochrome_5by5_t microbit_const_image_rollerskate_obj;
  93. extern const struct _monochrome_5by5_t microbit_const_image_duck_obj;
  94. extern const struct _monochrome_5by5_t microbit_const_image_house_obj;
  95. extern const struct _monochrome_5by5_t microbit_const_image_tortoise_obj;
  96. extern const struct _monochrome_5by5_t microbit_const_image_butterfly_obj;
  97. extern const struct _monochrome_5by5_t microbit_const_image_stickfigure_obj;
  98. extern const struct _monochrome_5by5_t microbit_const_image_ghost_obj;
  99. extern const struct _monochrome_5by5_t microbit_const_image_sword_obj;
  100. extern const struct _monochrome_5by5_t microbit_const_image_giraffe_obj;
  101. extern const struct _monochrome_5by5_t microbit_const_image_skull_obj;
  102. extern const struct _monochrome_5by5_t microbit_const_image_umbrella_obj;
  103. extern const struct _monochrome_5by5_t microbit_const_image_snake_obj;
  104. #endif // __MICROPY_INCLUDED_MICROBIT_CONSTIMAGE_H__