📄 eeprom.h
字号:
/******************************************SpokePOV V1.0 firmwareSpokePOV firmware is distributed under CC license. For more info on CC go to www.creativecommons.orgFor more info on SpokePOV go to www.ladyada.net/make/spokepovCreative Commons DeedAttribution-NonCommercial-ShareAlike 2.5You are free: * to copy, distribute, display, and perform the work * to make derivative worksUnder the following conditions:Attribution. You must attribute the work in the manner specified by the author or licensor.Noncommercial. You may not use this work for commercial purposes.Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license identical to this one. * For any reuse or distribution, you must make clear to others the license terms of this work. * Any of these conditions can be waived if you get permission from the copyright holder.Your fair use and other rights are in no way affected by the above.A more detailed version of this license is available at:http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode******************************************/#define SPIEE_CS_PORT PORTB#define SPIEE_CS 4#define SPI_EEPROM_READ 0x3#define SPI_EEPROM_WRITE 0x2#define SPI_EEPROM_WREN 0x6#define SPI_EEPROM_RDSR 0x5#define SPI_EEPROM_WRSR 0x1void spieeprom_read(uint16_t addr, uint8_t *buff, uint8_t len);uint8_t spieeprom_write(uint16_t addr, uint8_t* data, uint8_t len);void spieeprom_read_into_leds(uint16_t addr, uint8_t side);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -