how can i correctly use sensor_vn and sensor_vp as input?

stoikos
Posts: 31
Joined: Mon Aug 06, 2018 4:38 am

how can i correctly use sensor_vn and sensor_vp as input?

Postby stoikos » Fri Feb 15, 2019 5:36 am

Hi,
I am trying to use sensor_vn and sensor_vp as input, with values coming from an adc chip (which uses data and clock pins). I haven't added any pullup or pull down resistors. looking through the forum I have found and implemented this code. I am aware the bug about gpio39 firing where some peripheral power up. when I am using another pin everything looks fine. when I am using those 2 I get weird values. am I missing anything? what is the correct way to use those pins?

Code: Select all

#define GPIO_BIT_MASK  ((1ULL<<GPIO_NUM_39) | (1ULL<<GPIO_NUM_36) )

	gpio_config_t io_conf;
	io_conf.intr_type = GPIO_INTR_DISABLE;
	io_conf.mode = GPIO_MODE_INPUT;
	io_conf.pin_bit_mask = GPIO_BIT_MASK;
	io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE;
	io_conf.pull_up_en = GPIO_PULLUP_DISABLE;
	gpio_config(&io_conf);

Who is online

Users browsing this forum: No registered users and 104 guests