@@ -91,7 +91,9 @@ STATIC mp_obj_t espulp_ulp_obj___exit__(size_t n_args, const mp_obj_t *args) {
91
91
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (espulp_ulp___exit___obj , 4 , 4 , espulp_ulp_obj___exit__ );
92
92
93
93
//| def set_wakeup_period(self, period_index: int, period_us: int) -> None:
94
- //| """Sets the wakeup period for the ULP."""
94
+ //| """Sets the wakeup period in microseconds for the ULP.
95
+ //| Up to 5 different wakeup periods can be stored (`period_index` = 0..4).
96
+ //| By default, period index 0 is used."""
95
97
//| ...
96
98
STATIC mp_obj_t espulp_ulp_set_wakeup_period (mp_obj_t self_in , mp_obj_t period_index , mp_obj_t period_us ) {
97
99
espulp_ulp_obj_t * self = MP_OBJ_TO_PTR (self_in );
@@ -108,10 +110,12 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_3(espulp_ulp_set_wakeup_period_obj, espulp_ulp_se
108
110
//| self,
109
111
//| program: ReadableBuffer,
110
112
//| *,
111
- //| entrypoint: int,
113
+ //| entrypoint: int = 0 ,
112
114
//| pins: Sequence[microcontroller.Pin] = ()
113
115
//| ) -> None:
114
- //| """Loads the program into ULP memory and then runs the program, starting at entry_point.
116
+ //| """Loads the program into ULP memory and then runs the program.
117
+ //| `entry_point` specifies the offset (in bytes) of the first instruction
118
+ //| from the start of the program.
115
119
//| The given pins are claimed and not reset until `halt()` is called.
116
120
//|
117
121
//| The program will continue to run even when the running Python is halted."""
0 commit comments