- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can i use GPIO PULLUP/PULLDOWN for GPIO,
Using the function
gpio_configurePin(2/16, 2%16, GPIO_EN_INT_FALLING_EDGE,GPIO_PIN_INPUT_HIGH);
or which functions i use...
Solved! Go to Solution.
- Labels:
-
GPIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
They are flags, so they are combined with a bitwise OR which is the symbol "|".
Here are a couple of examples directly from my working-well-now code base. 🙂
gpio_configurePin(GPIO_PIN_P0 / 16, GPIO_PIN_P0 % 16, GPIO_INPUT_ENABLE | GPIO_PULL_UP, 0);
gpio_configurePin(COL1 / 16, COL1 % 16, GPIO_INPUT_ENABLE | GPIO_EN_INT_BOTH_EDGE, GPIO_PIN_OUTPUT_LOW);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
They are flags, so they are combined with a bitwise OR which is the symbol "|".
Here are a couple of examples directly from my working-well-now code base. 🙂
gpio_configurePin(GPIO_PIN_P0 / 16, GPIO_PIN_P0 % 16, GPIO_INPUT_ENABLE | GPIO_PULL_UP, 0);
gpio_configurePin(COL1 / 16, COL1 % 16, GPIO_INPUT_ENABLE | GPIO_EN_INT_BOTH_EDGE, GPIO_PIN_OUTPUT_LOW);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok i will try this...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content