Hi i'de like to use the RX1 pin as an output on my board. I set it up via pinmode, but for some reason it doesn't seem to respond. I made a test program that did nothing but set it as an output and set it low, yet my multimeter still shows a fluctuating voltage. How can I use it as an output? (All of my other pins are used)
Post your code so we can see too.
Lefty
#define numWires 18
int wires[numWires]={18,19,1,4,3,2,7,6,5,16,9,8,13,15,14,11,10,12};
void setup() {
for(int i=0;i<numWires;i++){
pinMode(wires*,OUTPUT);*
_ digitalWrite(wires*, LOW);_
_}*_
}
void loop(){
}
Also, I think I may have posted this in the wrong section >_<
bamp >_<
Hi i'de like to use the RX1 pin as an output on my board.
If the RX1 pin is controlled via a serial uart type function, then it might be easier to use another approach to have more outputs. You probably need to check the chip specifications to see the RX1 setup.
Your code:
#define numWires 18
int wires[numWires]={18,19,1,4,3,2,7,6,5,16,9,8,13,15,14,11,10,12};
void setup() {
for(int i=0;i<numWires;i++){
pinMode(wires[i],OUTPUT);
digitalWrite(wires[i], LOW);
}
}
void loop(){
}
The RX1 pin is digital input pin 0 and you don't have that in your pin array list.
Try:
#define numWires [glow]19[/glow]
int wires[numWires]={18,19,[glow]0,[/glow]1,4,3,2,7,6,5,16,9,8,13,15,14,11,10,12};
[glow]// Also not using pin 17?
// If you do want to add pin 17 add it the the array list and make
// numWires = 20[/glow]
void setup() {
for(int i=0;i<numWires;i++){
pinMode(wires[i],OUTPUT);
digitalWrite(wires[i], LOW);
}
}
void loop(){
}