SPI_25LC1024_write

Description

Write a single byte to a 25LC1024 serial EEPROM

Definition

proc ubyte SPI_25LC1024_write(uint addr, ubyte val)

Library

LIB/spi_25lc1024_lib.bas

Usage

On entry:
addr is the address within the EEPROM of the byte to write

val is the value to write to the EEPROM at address addr

On exit:
Return 0 if the write failed, return non 0 if the write succeaded