I2C master

Dependencies:   mbed mbed-rtos

Fork of i2c_master by Chaitanya Viswa

main.cpp

Committer:
greenroshks
Date:
2014-12-04
Revision:
2:899f7e7c61ed
Parent:
1:14b369c0f314

File content as of revision 2:899f7e7c61ed:

#include "master.h"
#include "rtos.h"

void masterer(void const *args)
{
        FUNC_I2C_MASTER_MAIN(1,0x20,24);
        
    
}

int main()
{
    Thread::wait(3000);
    RtosTimer timer(masterer,osTimerPeriodic);
    timer.start(20000);
    while(1)
    {
            ;
    }
}