I have the following few lines of code, but can not achieve high output, How to get high output?request help, thank you!
GPIO_ConfigTypeDef gpio_out_cfg;
gpio_out_cfg.GPIO_Mode = GPIO_Mode_Output;
gpio_out_cfg.GPIO_Pin = GPIO_Pin_0;
gpio_config(&gpio_out_cfg);
GPIO_OUTPUT_SET(GPIO_ID_PIN(0), 1);
对GPIO0操作不成功
-
- Posts: 4
- Joined: Sun Nov 19, 2017 6:36 pm
Re: 对GPIO0操作不成功
Postby Her Mary » Wed Nov 22, 2017 3:33 pm
Maybe those examples can help you esp8266-rtos-sample-code/02Peripheral
-
- Posts: 4
- Joined: Sun Nov 19, 2017 6:36 pm
Re: 对GPIO0操作不成功
Postby yulihui2683685 » Wed Nov 22, 2017 9:45 pm
I've tried this example, but still no success, do not know why
GPIO_ConfigTypeDef io_out_conf;
io_out_conf.GPIO_IntrType = GPIO_PIN_INTR_DISABLE;
io_out_conf.GPIO_Mode = GPIO_Mode_Output;
io_out_conf.GPIO_Pin = GPIO_Pin_0;
io_out_conf.GPIO_Pullup = GPIO_PullUp_DIS;
gpio_config(&io_out_conf);
GPIO_OUTPUT_SET(GPIO_Pin_0, 1);
GPIO_ConfigTypeDef io_out_conf;
io_out_conf.GPIO_IntrType = GPIO_PIN_INTR_DISABLE;
io_out_conf.GPIO_Mode = GPIO_Mode_Output;
io_out_conf.GPIO_Pin = GPIO_Pin_0;
io_out_conf.GPIO_Pullup = GPIO_PullUp_DIS;
gpio_config(&io_out_conf);
GPIO_OUTPUT_SET(GPIO_Pin_0, 1);
Who is online
Users browsing this forum: No registered users and 120 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.