Post links and attach files for documentation here, also chat about these docs freely

User avatar
By koliqi
#791
rudi wrote:hi,
I note at
http://g-lab.ca/esp8266ex-gpio-applicat ... interface/
at the feet note ( bottom )
" You can find link to download zip archive esp8266_sdk_v0.9.1.zip on esp8266 forum esp8266.com. Source files for GPIO API are located at examples\…\user\ user_switch.c"
)

Correct footnote should be:
"Information's on this page are adapted from Espressif IoT SDK_Programming_Manual _v0.9.pdf, Google translation of esp8266_sdk_v0.9.1/document/Espressif IoT SDK_编程手册_v0.9.pdf. You can find link to download zip archive esp8266_sdk_v0.9.1.zip on esp8266 forum esp8266.com. Source files for GPIO API should be located at examples\ 0.switch (WAN + LANsta + softAP) \user\user_switch.c.。Please note that actual archive esp8266_sdk_v0.9.1.zip doesn't provide directory \0.switch (WAN + LANsta + softAP)."
Corrected.
koliqi
User avatar
By rudi
#792
koliqi wrote:----Please note that actual archive esp8266_sdk_v0.9.1.zip doesn't provide directory \0.switch (WAN + LANsta + softAP)."
Corrected.
koliqi


thank you for clearing this ;-)
is there a other way to get the example with user_switch.c ?
i need a construction in switching the GPIO by code
i try
as low-level output:
gpio_output_set(0,BIT2, BIT2, 0);


then i will set GPIO2 low/high
GPIO_OUTPUT_SET(gpio_no, bit_value )

with
GPIO_OUTPUT_SET(BIT2, 0 )
and
GPIO_OUTPUT_SET(BIT2, 1 )

but this "sh*t happens" ;-)

a little work how to to this would be fine if someone can help in this

best wishes
rudi
;-)
User avatar
By rudi
#801
wififofum wrote:Did you try
GPIO_OUTPUT_SET(2, 0 )
and
GPIO_OUTPUT_SET(2, 1 )

thanks for help, yes i try - no value change.
perhabs i make wrong from begin.
my infos are:
gpio16.h (IoT web demo )
gpio16.c (IoT web demo )
gpio.h (xtensa/esp_iot_sdk\include) this descript the void gpio_init(void) too
and hardware
eagle_soc.h (xtensa/esp_iot_sdk\include) there is writen "BIT2"..


my unknown in this:
when must call gpio_init() , before settings for output, or after
how is setting done for a simple output 1 / 0 at a GPIO in a Base code
i puzzle in this ... just time i have no possitive result ..
i call a simple new created AT Command for this: ( i attached two pics )
AT+GPIOH
AT+GPIOL

perhabs someone have a tip in this.
txs in advance.
best wishes
rudi
;-)
You do not have the required permissions to view the files attached to this post.