- Thu Jan 15, 2015 6:50 am
#7355
alonewolfx2 wrote:I saw your video and there is no code again
hi mehmet,
yes.. because i do my homework day for day for me
this is my hobby -
all can read and learn:
SPI / SD / MMSC
https://www.sdcard.org/downloads/pls/si ... t1_410.pdfhttps://www.sdcard.org/downloads/pls/simplified_specs/here are the GPIO register
http://bbs.espressif.com/viewtopic.php?f=7&t=112here spi examples
http://bbs.espressif.com/viewtopic.php? ... 7fdfd00706and all to do is combine this
ESP8266 is only a µC likewise AVR or PIC or other -
ok - more function - but the prozedures are all the same
..define
..declare
..and so on
and everybody who want make fw must know how c is code.
this can not learn from my examples
it's easy if day on day read spezifikation and test own code
ok... not when GPIO4 and GPIO5 at ESP-12 is printend wrong
i used it as CLK and CS, and in start - nothing go on.
so be warned:
the printed data at esp-07 and esp-12 must swapped at gpio4 and gpio5
then all ok
hey mehmet - this is still simplest SPI Master - Slave communication
set GPIO'S you need
MOSI
MISO
CLK
SS
make simple macros for
set
init
send
read
btw send and read you can make in one macro
send dummy packets if you want read..
look how spi is communicate
and read datasheet form mcp23s17 how it works
if you use it for input, you can work work with INT
and then you read the data with send/read macro
start!!
ist so simple:
spi_tx (opcode, register, data )
spi_tx(opcode, register, 'H')
spi_tx(opcode, register, 'a')
spi_tx(opcode, register, 'l')
spi_tx(opcode, register, 'l')
spi_tx(opcode, register, 'o')
there is no top secret on this - but i never post my own code,
because my code is hobby and for teaching better not to use or inspiration
..but it run
and each someone makes code other i work with inlines for smal grafik
you use pictures outside. with this code snippet i post here you can make your own
webserver like i made simple - and this is the fastest way - my think.
next step is to connect a LCD at a Port ( HALLO ) and make output for read.
step by step forward - you must make by self .. not wait for projekt with code
make web response for DS18B20 and DHT11 or DHT22 simple way to and build in in the
webserver code snippet. you will have fun more and doing by self
best wishes
rudi