#include <SoftwareSerial.h>
int _bv[9];
int _ro[5];
SoftwareSerial lcd(255,7);
void setup() {
start_lcd(7,4,20);
}
void loop() {
// put your main code here, to run repeatedly:
}
void start_lcd( int pin, int numRows, int numCols, int posBase=1 ) {
}
But i get the error:
Ser_lcd_tst.ino: In function 'void setup()':
Ser_lcd_tst:9: error: 'start_lcd' was not declared in this scope
What do i mis here?
But i get the error:
Ser_lcd_tst.ino: In function 'void setup()':
Ser_lcd_tst:9: error: 'start_lcd' was not declared in this scope
What do i mis here?
What you are missing is how to define a function that takes an argument with a default value. That is not it.
A function that takes an argument with a default value declares the default value in the function prototype. Since the IDE usually generates function prototypes for you, you don't normally need to. But, the IDE has limits. It doesn't know what to do with your incorrect function implementation, so it does not generate a prototype for you. You must create your own, or implement the function before you use it. Of course, you still must implement it correctly.