Added software I2C on timer TIM2

This commit is contained in:
eddyem
2015-10-01 11:05:35 +03:00
parent 4345cedd6e
commit 99a2c601cc
14 changed files with 1386 additions and 0 deletions

32
si7005_softi2c/si7005.h Normal file
View File

@@ -0,0 +1,32 @@
/*
* si7005.h
*
* Copyright 2015 Edward V. Emelianoff <eddy@sao.ru, edward.emelianoff@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#pragma once
#ifndef __SI7005_H__
#define __SI7005_H__
void si7005_setup();
void si7005_read_ID();
void si7005_read_T();
void si7005_read_P();
void si7005_process();
#endif // __SI7005_H__