0

Here is the code:

void setup() {
  Serial.print("hi");
}
void loop() {
}

The product is in here.

I also installed the drivers.

1

You haven't "started" the serial interface. Before you use the serial you need to tell it to initialize the hardware and how fast you want to communicate.

You need to add, for instance,

Serial.begin(9600);

to your setup() function before you do your Serial.print().

8
  • What does the command do exactly? Why 9600? Mar 25 '16 at 12:06
  • Still can't see nothing in the serial Mar 25 '16 at 12:07
  • It makes it work. At the moment you have sat in your car and and are pressing the accelerator - but you forgot to start the engine. You need to make sure that you are communicating at the same speed as you have specified in the begin() function call. Also you may see more if you change your print to a println and place it in loop instead of setup so it sends it over and over again.
    – Majenko
    Mar 25 '16 at 12:08
  • still nothing in the serial monitor Mar 25 '16 at 12:10
  • Are you sure you are programming the board? Try using the Blink example to make sure you are actually programming it. Then try the AnalogInOutSerial example.
    – Majenko
    Mar 25 '16 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.