program for conv1, universal converter before including conv2 code
Fork of _8_CONV_1_SLAVE by
main.h
- Committer:
- marcus255
- Date:
- 2015-12-06
- Revision:
- 1:455088a984b0
- Parent:
- 0:ab0f6f4ef7ac
- Child:
- 4:9e2adff677ac
File content as of revision 1:455088a984b0:
#ifndef MAIN_H #define MAIN_H #include <mbed.h> #define SLAVE_ADDR 0xA0 #define RECBUFSIZE 64 #define UART_CONFIRMATION_CHAR 0x33 #define DATA_TO_WRITE_CHAR 0xCC #define DATA_TO_READ_CHAR 0x99 #define UART_NON_CONFIRMATION_CHAR 0xAA #define END_OF_TRANSMISSION 0x66 #define UART_CHAR_INCOMING 0x44 I2CSlave slave(PTB4, PTB3); Serial device(USBTX, USBRX); InterruptIn SDA_interrupt(PTB7); DigitalIn SDA_state(PTB6); //char msg[] = "qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnm"; char buffer; int count; void i2cStart(void); void init(void); #endif