micropython 273 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. commit 242fff05599d97faafab563a827dd86791c0cbee
  2. Author: Oliver Fabel <28701799+ofabel@users.noreply.github.com>
  3. Date: Fri Nov 15 11:54:04 2024 +0100
  4. library update
  5. diff --git a/genhdr/qstrdefs.generated.h b/genhdr/qstrdefs.generated.h
  6. index 715323321..5601148ed 100644
  7. --- a/genhdr/qstrdefs.generated.h
  8. +++ b/genhdr/qstrdefs.generated.h
  9. @@ -389,6 +389,7 @@ QDEF1(MP_QSTR_canvas_text_height, 239, 18, "canvas_text_height")
  10. QDEF1(MP_QSTR_canvas_text_width, 86, 17, "canvas_text_width")
  11. QDEF1(MP_QSTR_canvas_update, 131, 13, "canvas_update")
  12. QDEF1(MP_QSTR_canvas_width, 180, 12, "canvas_width")
  13. +QDEF1(MP_QSTR_choice, 46, 6, "choice")
  14. QDEF1(MP_QSTR_closure, 116, 7, "closure")
  15. QDEF1(MP_QSTR_debug, 212, 5, "debug")
  16. QDEF1(MP_QSTR_decode, 169, 6, "decode")
  17. @@ -448,7 +449,9 @@ QDEF1(MP_QSTR_on_input, 141, 8, "on_input")
  18. QDEF1(MP_QSTR_pwm_is_running, 82, 14, "pwm_is_running")
  19. QDEF1(MP_QSTR_pwm_start, 240, 9, "pwm_start")
  20. QDEF1(MP_QSTR_pwm_stop, 200, 8, "pwm_stop")
  21. +QDEF1(MP_QSTR_randint, 175, 7, "randint")
  22. QDEF1(MP_QSTR_random, 190, 6, "random")
  23. +QDEF1(MP_QSTR_randrange, 163, 9, "randrange")
  24. QDEF1(MP_QSTR_rb, 213, 2, "rb")
  25. QDEF1(MP_QSTR_readable, 93, 8, "readable")
  26. QDEF1(MP_QSTR_readlines, 106, 9, "readlines")
  27. @@ -474,6 +477,7 @@ QDEF1(MP_QSTR_time, 240, 4, "time")
  28. QDEF1(MP_QSTR_time_ns, 114, 7, "time_ns")
  29. QDEF1(MP_QSTR_trace, 164, 5, "trace")
  30. QDEF1(MP_QSTR_uart_open, 220, 9, "uart_open")
  31. +QDEF1(MP_QSTR_uniform, 1, 7, "uniform")
  32. QDEF1(MP_QSTR_union, 246, 5, "union")
  33. QDEF1(MP_QSTR_vibro_set, 216, 9, "vibro_set")
  34. QDEF1(MP_QSTR_warn, 175, 4, "warn")
  35. diff --git a/mpconfigport.h b/mpconfigport.h
  36. index 30be0a3bf..a8895590b 100644
  37. --- a/mpconfigport.h
  38. +++ b/mpconfigport.h
  39. @@ -59,7 +59,7 @@ typedef long mp_off_t;
  40. #define MICROPY_PY_TIME_TIME_TIME_NS (1)
  41. #define MICROPY_PY_RANDOM (1)
  42. -#define MICROPY_PY_RANDOM_EXTRA_FUNCS (0)
  43. +#define MICROPY_PY_RANDOM_EXTRA_FUNCS (1)
  44. #define MICROPY_PY_RANDOM_SEED_INIT_FUNC (mp_flipper_seed_init())