{"action":"published","release":{"url":"https://api.github.com/repos/Marzogh/SPIFlash/releases/1441219","assets_url":"https://api.github.com/repos/Marzogh/SPIFlash/releases/1441219/assets","upload_url":"https://uploads.github.com/repos/Marzogh/SPIFlash/releases/1441219/assets{?name}","html_url":"https://github.com/Marzogh/SPIFlash/releases/tag/v1.0.1","id":1441219,"tag_name":"v1.0.1","target_commitish":"master","name":"","draft":false,"author":{"login":"Marzogh","id":7234422,"avatar_url":"https://avatars.githubusercontent.com/u/7234422?v=3","gravatar_id":"","url":"https://api.github.com/users/Marzogh","html_url":"https://github.com/Marzogh","followers_url":"https://api.github.com/users/Marzogh/followers","following_url":"https://api.github.com/users/Marzogh/following{/other_user}","gists_url":"https://api.github.com/users/Marzogh/gists{/gist_id}","starred_url":"https://api.github.com/users/Marzogh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Marzogh/subscriptions","organizations_url":"https://api.github.com/users/Marzogh/orgs","repos_url":"https://api.github.com/users/Marzogh/repos","events_url":"https://api.github.com/users/Marzogh/events{/privacy}","received_events_url":"https://api.github.com/users/Marzogh/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2015-05-21T01:21:56Z","published_at":"2015-06-20T14:50:46Z","assets":[],"tarball_url":"https://api.github.com/repos/Marzogh/SPIFlash/tarball/v1.0.1","zipball_url":"https://api.github.com/repos/Marzogh/SPIFlash/zipball/v1.0.1","body":"All functions have been tested and found to work well on Arduino 1.6.x.\r\n\r\nPlease report any issues and I will do my best to fix them.\r\n\r\n## Change log\r\n\r\n### v 1.0.1\r\n- Added Output options to readPage()\r\n    - The function readPage() now takes an extra argument along with page_buffer - outputType. Setting an outputType of 1 enables output in hexadecimal while an outputType of 2 enables output in decimal, CSV - over Serial.\r\n\r\n### v 1.0\r\n##### Installation\r\n- Click on the 'Download zip' button to the right.\r\n- Unzip the archive and rename resulting folder to 'SPIFlash'\r\n- Move the folder to your libraries folder (~/sketches/libraries)\r\n\r\n##### Usage\r\nThe library is called by declaring the```SPIFLASH flash(csPin)``` constructor where 'flash' can be replaced by a user constructor of choice and 'csPin' is the Chip Select pin for the flash module.\r\nMake sure to include ```#include<SPI.H>``` when you include ```#include<SPIFlash.h>```.\r\n\r\nThe library enables the following functions: (For further details on the functions refer to README.md)\r\n<hr>\r\n##### Get JEDEC ID\r\n###### getID ()\r\n<hr>\r\n##### Continuous read commands\r\n###### beginRead(address)\r\n###### readNextByte()\r\n###### endRead()\r\n<hr>\r\n##### Read commands\r\n###### readByte(page, offset)\r\n###### readPage(page_number, *page_buffer, outputType)\r\n<hr>\r\n##### Write commands\r\n###### writeByte(page, offset, data)\r\nWrites a byte of data to a specific location on a page. Takes the page number (0-4095), offset of data byte within page (0-255) and one byte of data (0-255) as arguments.\r\n###### writePage(uint16_t page_number, uint8_t *page_buffer)\r\n<hr>\r\n##### Erase commands\r\n###### eraseSector(address)\r\n###### eraseBlock32K(address)\r\n###### eraseBlock64K(address)\r\n###### eraseChip()\r\n<hr>\r\n##### Suspend/Resume commands\r\n###### suspendProg()\r\n###### resumeProg()\r\n<hr>\r\n##### Power operation commands\r\n###### powerDown()\r\n###### powerUp()\r\n<hr>\r\n##### readAllPages()\r\n\r\n###### How to get data off Flash memory via Serial\r\n<sub>(Works only for Unix based Operating Systems)</sub>\r\nRefer to README.md"}}