/AliOS-Things-master/solutions/javascript_demo/board/haas-edu-k1/ |
A D | pwm.js | 39 var duty = pwm1.get().duty variable 41 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty) 45 duty = 0; 50 if (duty >= 100) { 51 duty = 0; 53 duty = duty + 10; 57 duty: duty 61 duty = pwm1.get().duty 63 console.log('pwm: pwm timer config freq is ' + freq + ' duty is ' + duty)
|
/AliOS-Things-master/solutions/javascript_demo/board/haas100/ |
A D | pwm.js | 57 var duty = pwm1.get().duty variable 59 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty) 63 duty = 0; 67 if (duty >= 100) { 68 duty = 0; 70 duty = duty + 10; 74 duty: duty 78 duty = pwm1.get().duty 80 console.log('pwm: pwm timer config freq is ' + freq + ' duty is ' + duty)
|
/AliOS-Things-master/components/amp/example-js/ |
A D | pwm.js | 16 var duty = pwm1.getOption().duty variable 18 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty) 22 duty = 0; 26 if (duty >= 100) { 27 duty = 0; 29 duty = duty + 20; 33 duty: duty
|
/AliOS-Things-master/solutions/javascript_demo/board/haas600/ |
A D | pwm.js | 39 var duty = pwm1.get().duty variable 41 console.log('pwm: pwm default config freq is ' + freq + ' duty is ' + duty) 45 duty = 0; 49 if (duty >= 100) { 50 duty = 0; 52 duty = duty + 20; 56 duty: duty
|
/AliOS-Things-master/components/py_engine/tests/haas/HaaS100/python-apps/driver/pwm/ |
A D | main.py | 7 duty = pwm.getDuty() variable 9 print(duty) 12 duty = pwm.getDuty() variable 14 print(duty) 18 duty = pwm.getDuty() variable 20 print(duty)
|
/AliOS-Things-master/components/py_engine/tests/haas/HaaSEdu/python-apps/driver/pwm/ |
A D | main.py | 7 duty = pwm.getDuty() variable 9 print(duty) 12 duty = pwm.getDuty() variable 14 print(duty) 18 duty = pwm.getDuty() variable 20 print(duty)
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/pwm/ |
A D | module_pwm.c | 18 int duty; member 104 pwm_config.duty = (int)(pwm_device->config.duty_cycle * 100); in native_pwm_getConfig() 112 duk_push_int(ctx, pwm_config.duty); in native_pwm_getConfig() 126 int duty = 0; in native_pwm_setConfig() local 145 duty = duk_get_number(ctx, -1); in native_pwm_setConfig() 147 pwm_device->config.duty_cycle = (float)duty / 100.0; in native_pwm_setConfig()
|
/AliOS-Things-master/components/amp-utility/python/ |
A D | PWM.py | 18 def setConfig(freq, duty): argument 49 def setDuty(duty): argument
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | machine_pwm.c | 95 mp_int_t duty = args[ARG_duty].u_int; in machine_pwm_init_helper() local 99 dev->config.duty_cycle = duty / 100.f; in machine_pwm_init_helper() 185 mp_int_t duty = mp_obj_get_int(args[1]); in machine_pwm_duty() local 186 mp_int_t status = update_param(self, self->freq, duty); in machine_pwm_duty() 196 mp_int_t duty = mp_obj_get_int(args[2]); in machine_pwm_freqduty() local 198 int status = update_param(self, freq, duty); in machine_pwm_freqduty()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | machine_pwm.c | 112 mp_int_t duty = args[ARG_duty].u_int; in machine_pwm_init_helper() local 116 dev->config.duty_cycle = duty / 100.f; in machine_pwm_init_helper() 197 mp_int_t duty = mp_obj_get_int(args[1]); in machine_pwm_duty() local 198 mp_int_t status = update_param(self, self->freq, duty); in machine_pwm_duty() 207 mp_int_t duty = mp_obj_get_int(args[2]); in machine_pwm_freqduty() local 209 int status = update_param(self, freq, duty); in machine_pwm_freqduty()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/hardware/pwm/ |
A D | module_pwm.c | 22 int duty; member 125 pwm_config.duty = (int)(pwm_device->config.duty_cycle * 100); in native_pwm_getConfig() 130 JS_SetPropertyStr(ctx, t, "duty", JS_NewInt32(ctx, pwm_config.duty)); in native_pwm_getConfig() 143 int duty = 0; in native_pwm_setConfig() local 187 ret = JS_ToInt32(ctx, &duty, val); in native_pwm_setConfig() 194 pwm_device->config.duty_cycle = (float)duty / 100.0; in native_pwm_setConfig()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | machine_pwm.c | 112 mp_int_t duty = args[ARG_duty].u_int; in machine_pwm_init_helper() local 116 dev->config.duty_cycle = duty / 100.f; in machine_pwm_init_helper() 197 mp_int_t duty = mp_obj_get_int(args[1]); in machine_pwm_duty() local 198 mp_int_t status = update_param(self, self->freq, duty); in machine_pwm_duty() 207 mp_int_t duty = mp_obj_get_int(args[2]); in machine_pwm_freqduty() local 209 int status = update_param(self, freq, duty); in machine_pwm_freqduty()
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/doc/ |
A D | txtvsbin.txt | 11 file type requires heavy-duty semantic analysis on the file contents.
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/ |
A D | Kconfig | 261 the help of a reduced scan duty cycle. The downside of this
|