microbitconstimagetuples.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * The MIT License (MIT)
  3. *
  4. * Copyright (c) 2015 Mark Shannon
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a copy
  7. * of this software and associated documentation files (the "Software"), to deal
  8. * in the Software without restriction, including without limitation the rights
  9. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. * copies of the Software, and to permit persons to whom the Software is
  11. * furnished to do so, subject to the following conditions:
  12. *
  13. * The above copyright notice and this permission notice shall be included in
  14. * all copies or substantial portions of the Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  19. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  22. * THE SOFTWARE.
  23. */
  24. #include "py/runtime.h"
  25. #include "microbitconstimage.h"
  26. const image_tuple_12_t microbit_const_image_all_clocks_tuple_obj = {
  27. {&mp_type_tuple},
  28. .len = 12,
  29. .items = {
  30. (mp_obj_t)&microbit_const_image_clock12_obj,
  31. (mp_obj_t)&microbit_const_image_clock1_obj,
  32. (mp_obj_t)&microbit_const_image_clock2_obj,
  33. (mp_obj_t)&microbit_const_image_clock3_obj,
  34. (mp_obj_t)&microbit_const_image_clock4_obj,
  35. (mp_obj_t)&microbit_const_image_clock5_obj,
  36. (mp_obj_t)&microbit_const_image_clock6_obj,
  37. (mp_obj_t)&microbit_const_image_clock7_obj,
  38. (mp_obj_t)&microbit_const_image_clock8_obj,
  39. (mp_obj_t)&microbit_const_image_clock9_obj,
  40. (mp_obj_t)&microbit_const_image_clock10_obj,
  41. (mp_obj_t)&microbit_const_image_clock11_obj
  42. }
  43. };
  44. const image_tuple_8_t microbit_const_image_all_arrows_tuple_obj = {
  45. {&mp_type_tuple},
  46. .len = 8,
  47. .items = {
  48. (mp_obj_t)&microbit_const_image_arrow_n_obj,
  49. (mp_obj_t)&microbit_const_image_arrow_ne_obj,
  50. (mp_obj_t)&microbit_const_image_arrow_e_obj,
  51. (mp_obj_t)&microbit_const_image_arrow_se_obj,
  52. (mp_obj_t)&microbit_const_image_arrow_s_obj,
  53. (mp_obj_t)&microbit_const_image_arrow_sw_obj,
  54. (mp_obj_t)&microbit_const_image_arrow_w_obj,
  55. (mp_obj_t)&microbit_const_image_arrow_nw_obj
  56. }
  57. };