mamalala wrote:mcsa wrote:I dont Inderstand how to write in registers. For example in PIN_OUT
WRITE_PERI_REG(PIN_OUT,0x05) set gpio0 and gpio2 high. Right or no?
No. The purpose of defining tzhe registers directly is to allow direct access to them, instead of going through the WRITE_PERI_REG stuff. For example:
PIN_OUT = 0x00000005;
should do what you want. Of course the pin has to be set up as an output first.
Greetings,
Chris
Don't understand how we can one number assign another number...