“SPIFlash库”的版本间的差异

来自YFRobotwiki
跳转至: 导航搜索
第1行: 第1行:
  
  
'''奋力编辑中....'''
+
''' 小编 奋力编辑中....'''
  
  

2016年12月27日 (二) 11:10的版本


小编奋力编辑中....


SPIFlash库 -- SPI华邦电子闪存Flash芯片arduino库 GITHUB 工程地址:SPIFlash

该库是用于华邦串行闪存芯片的库。目前的形式支持识别闪存芯片和它的各种功能;自动地址分配管理;在不同位置读写数据类型bytes/chars/ints/longs/floats/Strings;读写页面字节;连续读写字节/字符数组;扇区,块或整个芯片的擦除,关闭低功率操作。

支持arduino IDE 版本:

  • IDE v1.5.x
  • IDE v1.6.0-v1.6.5
  • IDE v1.6.9-v1.6.11

支持控制板:

  • Arduino Uno
  • Arduino Leonardo
  • Arduino Micro
  • Arduino Fio
  • Arduino Mega
  • Arduino Due
  • ESP8266 (On the Arduino IDE)
  • ATTiny85


示例


- Diagnostics: This demonstrates how to write and read data from the extended memory of the device. This memory is retained even after the device has lost power./演示如何读写数据从设备的扩展内存。即使设备掉电内存依然保存
- Struct_writer: This demonstrates how to set and get the date and time from the device./演示了如何在设备上设置和获取日期和时间
- TestFlash: This demonstrates how to set the alarms and check when the alarms are triggered. This includes using the squarewave output to trigger an interrupt./演示如何设置闹钟和检查何时触发闹钟。这包含使用方波输出触发一个中断
- getAddressEx: Don't need to `#include <SPI.h>` in user code anymore. Just including…./演示如何在设备上设置和获取日期和时间。
- readWriteString: Added a speed comparison excel spreadsheet and more examples./演示如何关闭RTC时钟以保证板载电池能持续更长时间

SPIFlash

SPIFlash 函数。

- begin() -- 初始化
参数:无
返回:无
- setClock()
-libver(uint8_t *b1, uint8_t *b2, uint8_t *b3) -- 设置方波输出引脚
参数:DS3231SquareWavePinMode pinMode

返回:无


- error() -- 检查错误
参数:无
返回:uint8_t
- getManID() -- 检查错误
参数:无
返回:uint8_t
- getJEDECID() -- 检查错误
参数:无
返回:uint8_t
- getAddress(uint16_t size, uint16_t &page_number, uint8_t &offset) -- 检查错误
参数:
  • size -
  • &page_number -
  • &offset -
返回:bool
- getAddress(uint16_t size) -- 检查错误
参数:无
返回:uint32_t
- getChipName() -- 检查错误
参数:无
返回:uint16_t
- sizeofStr(String &inputStr) -- 检查错误
参数:&inputStr
返回:uint16_t
- getCapacity() -- 检查错误
参数:无
返回:uint32_t
- getMaxPage() -- 检查错误
参数:无
返回:uint32_t
- writeByte(uint32_t address, uint8_t data, bool errorCheck = true) -- 检查错误
参数:
  • address -
  • data -
  • errorCheck -
返回:bool
- writeByte(uint16_t page_number, uint8_t offset, uint8_t data, bool errorCheck = true) -- 检查错误
参数:
  • page_number -
  • offset -
  • data -
  • errorCheck -
返回:bool
- readByte(uint16_t page_number, uint8_t offset, bool fastRead = false) -- 检查错误
参数:
  • page_number -
  • offset -
  • fastRead -
返回:uint8_t
- readByte(uint32_t address, bool fastRead = false) -- 检查错误
参数:
  • address -
  • fastRead -
返回:uint8_t


- getMaxPage() -- 检查错误
参数:无
返回:uint32_t
- getMaxPage() -- 检查错误
参数:无
返回:uint32_t


- getMaxPage() -- 检查错误
参数:无
返回:uint32_t
- getMaxPage() -- 检查错误
参数:无
返回:uint32_t





返回语音模块

返回Arduino库菜单

返回首页

更多建议和问题欢迎反馈至 YFRobot论坛