// pwm gforth interface version 09.02 #define PWM_VERSION 902 #ifdef __cplusplus extern "C" { #endif // functions in the adafruit pca9685 pwm driver // extern int pwm_test( void); extern int pwm_isInitialized( void); extern int pwm_readRegister( unsigned int reg_addr); extern int pwm_getFreq( void); extern int pwm_setFreq( float freq); extern int pwm_setDutyCycle( float duty_cycle, unsigned int channel_num, float delay); extern int pwm_setPulseWidth( float pulse_width, unsigned int channel_num, float delay); extern int pwm_fullOn( unsigned int channel_num, float delay); extern int pwm_fullOff( unsigned int channel_num, float delay); extern int pwm_sleep( void); extern int pwm_wakeUp( void); extern int pwm_softReset( void); extern int pwm_hardReset( void); // functions in pwm.c // extern int pwm_version( void); #ifdef __cplusplus } #endif