Hwapi H
#ifndef __HWAPI_H__
#define __HWAPI_H__
 
/* prototypes for "helper"-functions */
void stop(); /* Stops the door-motor */
void startOpening(); /* Puts direction to UP and motor on */
void startClosing(); /* Puts direction to DOWN and motor on */
int isDoorClosed(); /* returns 1 Door has fully closed */
int isDoorOpened(); /* returns 1 Door has completely opened*/
int isButton(); /* returns 1 if there is change from false to true */
void debugState(unsigned char state);
#endif
 
/*------------------------------------------------------------------*-
  ---- END OF FILE -------------------------------------------------
-*------------------------------------------------------------------*/
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License