SPI NOR Flash Single IO Nucleo F767ZI Helloworld 1Gb NOR Flash S70FL01GS

Dependencies:   S70FL01GS mbed

Fork of SPI_FLASH_MEM by Shivanand Gowda

main.cpp

Committer:
bcostm
Date:
2014-02-21
Revision:
0:21b36798fd00
Child:
2:f62261b0ef55

File content as of revision 0:21b36798fd00:

#include "mbed.h"
 
SPI device(SPI_MOSI, SPI_MISO, SPI_SCK);
 
int main() {
    int i = 0;
    while(1) {
        device.write(0x55);
        device.write(i++);
        device.write(0xE0);
        wait_us(50);
    }
}