I used the common Arduino spi pins for the mapping:
'SPIFLASH' : {
'pin_cs' : 'D10', # cs
'pin_mosi' : 'D11', # di
'pin_miso' : 'D12', # do
'pin_sck' : 'D13', # clk
'size' : 8192*1024*2, # 16MB
'memmap_base' : 0x60000000, # map into the address space (in software)
},
I wonder if we can just add in spiflash by default on the boards as a placeholder since spi can reuse the pins anyway (at least on the pixl, since it mimics the Arduino layout)? And maybe just pass in the cs pin when trying to use the Flash module just in case you'd want to reuse pin 10 for your own spi peripheral.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Looks like everything's working:
I used the common Arduino spi pins for the mapping:
I wonder if we can just add in spiflash by default on the boards as a placeholder since spi can reuse the pins anyway (at least on the pixl, since it mimics the Arduino layout)? And maybe just pass in the cs pin when trying to use the Flash module just in case you'd want to reuse pin 10 for your own spi peripheral.
1 Attachment