Why is pin 31 always on?
brandan
Posts: 52
in Propeller 1
I want it to blink when there's data coming over the USB serial connection.
#include "simpletools.h" int main() { low(27); while(1) { set_output(27,input(31)); } }
Comments
(From manual)
P28 - I2C SCL connection to optional, external EEPROM.
P29 - I2C SDA connection to optional, external EEPROM.
P30 - Serial Tx to host.
P31 - Serial Rx from host.
If that's the case, then just make the LED on, if pin 31 is low.
You can see a short flash ON on a normally dark LED, but you never see a short OFF on a normaly bright LED.
Andy
you can connect multiple things to one pin, usually it is like one output can drive around 10 inputs?
Mike
Here's my current code:
I don't know the definition of serial_open(), but would assume the first to parameters are the pins used for rx and tx. If you use the same pin for both you are talking to yourself.
That's how the propellor c tutorials do it.