I'm having trouble as I learn how to move code into multiple files. I'm currently stuck with this error when I compile.
'get_sat_rssi' was not declared in this scope
main file
#include "get_rssi.h"
#include "input.h"
void setup() {
Serial.begin(9600);
}
void loop() {
get_command_from_pc();
}
get_rssi.h
#ifndef GET_RSSI_H
#define GET_RSSI_H
#include <Arduino.h>
void get_sat_rssi() ;
#endif
input.h
#ifndef INPUT_H
#define INPUT_H
#include <Arduino.h>
void get_command_from_pc() ;
#endif
input.cpp
#include "input.h";
void get_command_from_pc() {
get_sat_rssi();
}
get_rssi.cpp
#include "get_rssi.h";
void get_sat_rssi() {
Serial.print("asdf");
}