Output state is not changing

Hi,

I am facing the problem .My output channels are not setting HIGH.

I wrote a code which is as below:

#include <Arduino.h>

#include <Indio.h> // include header file of industruino on 25.04.18
#include <Wire.h>
#include <UC1701.h>
const int TxEnablePin = 9;
static UC1701 lcd;
void setup() {
  // put your setup code here, to run once:

  //digitalWrite(26, HIGH);   // LCD backlight
   Indio.digitalMode(1,OUTPUT); // RUN
  Indio.digitalMode(2,OUTPUT);//RAISE SPEED
  Indio.digitalMode(3,OUTPUT);// LOWER SPEED
  Indio.digitalMode(4,OUTPUT);
  Indio.digitalMode(5,OUTPUT); // small motor
    Indio.digitalMode(6,OUTPUT);// big motor
    Indio.digitalMode(7,OUTPUT);
    Indio.digitalMode(8,OUTPUT);

   // pinMode(TxEnablePin, OUTPUT);
    Indio.digitalWrite(1,LOW);
    Indio.digitalWrite(2,LOW);
    Indio.digitalWrite(3,LOW);
    Indio.digitalWrite(4,LOW);
    Indio.digitalWrite(5,LOW);
    Indio.digitalWrite(6,LOW);
    Indio.digitalWrite(7,LOW);
    Indio.digitalWrite(8,LOW);
}

void loop() {
  // put your main code here, to run repeatedly:
  lcd.begin();
 lcd.setCursor(0, 3);
Indio.digitalWrite(7,HIGH);
//Indio.digitalWrite(2,HIGH);
//Indio.digitalWrite(1,HIGH);
lcd.print("hello world");

}

 

Jagroop Singh
Jagroop Singh
17
| 2 1 2
Asked on 1/25/19, 6:20 AM
0
vote
1791 Views

Dear Tom,

the light s ar eglowing.

Hello world is printing it means sketch is working

removed the #<Arduino> line

still problem is same

Jagroop Singh
Jagroop Singh
17
| 2 1 2
Answered on 1/25/19, 9:09 AM
0
vote

Hi,

Can you confirm that you are powering the INDIO with external power 12/24V on V+/V- and that you see 3 green LEDs light up on the baseboard. Please remove the first line #include <Arduino.h>

To make sure your codes is running, you can replace the last line with 

lcd.print(millis()/1000);

that will print a counter so you can be sure your sketch is running.

You could also try with the demo code available at https://github.com/Industruino/democode

 

Tom
Tom
5675
| 1 1 3
Answered on 1/25/19, 7:51 AM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

54 follower(s)

Stats

Asked: 1/25/19, 6:20 AM
Seen: 1791 times
Last updated: 1/25/19, 9:09 AM