Hello, I am very new here and very new trying to learn Arduino. I am wondering if there is a way that I can Tab between both readings just for the purpose of the serial monitor. I apologize if I did anything wrong on this post. if its not practical to do for the serial monitor, then its not a huge deal. I am also going to probably need some help making a simple menu as well, but I'm going to go back and give some honest effort before I do. I am trying to use the LCD keypad. Thanks a bunch!!
#include <Adafruit_Keypad.h>
#include <Adafruit_Keypad_Ringbuffer.h>
#include <SD.h>
#include <SPI.h>
File myFile; // Using Uno
int pinCS = 10; // Pin 10 on Arduino Uno
void setup() {
const int tpsRead = analogRead(A0); // Pins that will not change
const int mapRead = analogRead(A2);
Serial.begin(9600);
pinMode(pinCS, OUTPUT);
// SD Card Initialization
if (SD.begin())
{
Serial.println(" SD card is ready to use.");
} else
{
Serial.println(" Verify SC card is fully inserted");
return;
}
}
void loop() { //Operational code that runs continously
int tpsRead;
float throttle; // Throttle position first attempt to scale
throttle = tpsRead * (5.0 / 1023);
Serial.println(throttle );
Serial.print("Throttle ");
int mapRead; // MAP sensor first attempt to scale
float pressure;
pressure = mapRead * (5.0 / 1023);
Serial.println(pressure );
Serial.print("Pressure " );
}