#include <avr/interrupt.h>
#include <dio.h>
#include <time.h>
#include <lights.h>
Functions | |
int | digital_input (int portpin) |
Read a portpin. | |
void | digital_pull_up (int portpin) |
Pullup a portpin. | |
void | digital_output (int portpin, int val) |
Output to a portpin. | |
int | button1_read (void) |
Check if button1 is pressed. | |
void | button1_wait (void) |
Wait until button1 is pressed. | |
int | button1_click () |
Check if button1 is clicked. | |
int | button2_read (void) |
Check if button2 is pressed. | |
void | button2_wait (void) |
Wait until button2 is pressed. | |
int | button2_click () |
Check if button2 is clicked. |
Copyright (c) 2007 Colony Project
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Implementation of functions for digital input and output.