I want to use the internall pull down resistor. In python the setup method accepts a parameter for that, like:
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
according the rpi-gpio.js documentation the setup looks like it:
setup(channel [, direction, edge], callback)
and the description says:
Sets up a channel for read or write. Must be done before the channel can be used. channel: Reference to the pin in the current mode's schema. direction: The pin direction, pass either DIR_IN for read mode or DIR_OUT for write mode. Defaults to DIR_OUT. edge: Interrupt generating GPIO chip setting, pass in EDGE_NONE for no interrupts, EDGE_RISING for interrupts on rising values, EDGE_FALLING for interrupts on falling values or EDGE_BOTH for all interrupts. Defaults to EDGE_NONE. callback: Provides Error as the first argument if an error occurred.
So ... what about the pull resistors ???