Fixup some constants used in examples

This commit is contained in:
Alex Stewart 2015-08-20 15:11:29 -07:00
parent e07395fcb6
commit ab6f4b8420
3 changed files with 33 additions and 32 deletions
examples/button

View file

@ -15,7 +15,7 @@
/* pin config */
const int gpio = 0; /* gpio 0 usually has "PROGRAM" button attached */
const int active = 0; /* active == 0 for active low */
const gpio_interrupt_t int_type = INT_FALLING;
const gpio_inttype_t int_type = GPIO_INTTYPE_EDGE_NEG;
#define GPIO_HANDLER gpio00_interrupt_handler