removed fd in i2c.erl
changed unsigned char *txbuf in uint8_t *txbuf
updated spi demo